Log message #3148696

# At Username Text
# Jan 29th 2014, 11:21 halim when i updated the php.ini i also restared the webserver (apache)
# Jan 29th 2014, 11:20 halim but ini_get('max_execution_time') always returns 0
# Jan 29th 2014, 11:20 halim i've got the following problem: i somehow seem unable to change php's max_execution_time. i tried doing it via php.ini, using set_time_limit(), and using .htaccess
# Jan 29th 2014, 11:16 Neon1024 )
# Jan 29th 2014, 11:15 halim however, thanks for pointing it out Neon1024
# Jan 29th 2014, 11:15 Neon1024 Could be
# Jan 29th 2014, 11:15 halim seems like i've got a problem with my dns
# Jan 29th 2014, 11:15 halim i get "server not found"
# Jan 29th 2014, 11:14 halim damn
# Jan 29th 2014, 11:14 Neon1024 Confirmed up, http://www.downforeveryoneorjustme.com/book.cakephp.org
# Jan 29th 2014, 11:14 Neon1024 halim: the book is up for me :)
# Jan 29th 2014, 10:50 Dustinbvh thank you verry much Halim!
# Jan 29th 2014, 10:48 halim on that page look for "useDbConfig"
# Jan 29th 2014, 10:48 halim it's from the google cache, because book.cakephp.org seems to be down at the moment
# Jan 29th 2014, 10:47 halim Dustinbvh, http://webcache.googleusercontent.com/search?q=cache:dw-xrjqdEmAJ:book.cakephp.org/2.0/en/models/model-attributes.html+andcd=1andhl=enandct=clnkandclient=iceweasel-a
# Jan 29th 2014, 10:43 Dustinbvh Can someone tell me how I can define a second database connection ( I have default and external as database connections in the connection manager) Normally in every model it fetches the default DB connection but for a sertain page i want to select the external db connection. How can i realise this?
# Jan 29th 2014, 10:39 haris Does that work?
# Jan 29th 2014, 10:39 haris I am currently using Router::connect('/browse/*',array('controller' => 'posts', 'action' => 'view'));. I want the action to be different If there is 2 parameters i.e. /browse/**
# Jan 29th 2014, 10:37 Neon1024 !ask
# Jan 29th 2014, 10:36 haris can someone help me with routes
# Jan 29th 2014, 10:36 haris hello
# Jan 29th 2014, 10:36 Dustinbvh I have a small question which i cannot find on the book site
# Jan 29th 2014, 10:36 Dustinbvh Good morning everyone
# Jan 29th 2014, 09:55 halim if you think that the key 'role' should be existing in that array, i'd print the contents of that array (using pr() or debug()) and look at the code that sets or modifies that array
# Jan 29th 2014, 09:54 dan023 ok thanks...i'll have a look
# Jan 29th 2014, 09:54 halim dan023, the error says it all. it means that the key 'role' in $current_user doesn't exist. try something like this: (isset($current_user['role']) andand $current_user['role'] == 'admin')
# Jan 29th 2014, 09:52 dan023 btw this is my snippet: http://bin.cakephp.org/view/1845267223
# Jan 29th 2014, 09:52 halim any ideas on how to check the value of max_execution_time?
# Jan 29th 2014, 09:52 halim hello, i'm trying to configure php's max_execution_time and set it to 300. i've tried the following three things: setting it using .htaccess, setting it directly in the php.ini and setting it using the set_time_limit() function but ini_get('max_execution_time') always returns 0
# Jan 29th 2014, 09:50 dan023 i get an Undefined index: role [APP/View/Users/index.ctp
# Jan 29th 2014, 09:50 dan023 http://bin.cakephp.org/view/1978808080
# Jan 29th 2014, 09:16 hekep CakeEventManager::instance()->listners('Event.key') ; umm should extend CakeEventManager and update ->attach() to avoid doubles.
# Jan 29th 2014, 09:12 Neon1024 If they are registered, you should be able to query the thing that they are registered to
# Jan 29th 2014, 09:12 hekep suppose bootsrep.php is loaded only once , so it suppose to be safe there.
# Jan 29th 2014, 09:11 Neon1024 Have a read about event listeners in the book
# Jan 29th 2014, 09:11 Neon1024 No idea
# Jan 29th 2014, 09:11 hekep um how's that ...
# Jan 29th 2014, 09:10 Neon1024 So check if the listener already exists before attaching a new one
# Jan 29th 2014, 08:57 hekep what's the best place to register global event listeners ? app/Config/bootstrap.php , I suppose . Want avoid double listner registrations.
# Jan 29th 2014, 06:40 daVinciWanaB1 having 10+ translation fields in my translations table causes the query to create a lot of INNER JOINs, which makes a query on a 20-row table last over 2 minutes... any ideas whta I can do?
# Jan 29th 2014, 06:10 BackEndCoder hello