# |
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 |
# |
Jan 29th 2014, 06:10 |
Junior |
yello ;) |
# |
Jan 29th 2014, 06:10 |
BackEndCoder |
i'm going to get some sleep, best of luck mate |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
or indeed 'werid' |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
that would make sence why $this is null |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
i'm guessing now tho, cause i don't have the code infront of me |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
you never know |
# |
Jan 29th 2014, 06:03 |
BackEndCoder |
try something like $this->Cms->render( array('view' => 'cms_index')); at the bottom of your cms_index action just to see if it works |
# |
Jan 29th 2014, 06:02 |
BackEndCoder |
this is why you are having problems using forms |
# |
Jan 29th 2014, 06:02 |
BackEndCoder |
so your cms_index your trying to load doesn't use the same controller |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
it would seem your cms thing has overridden rendering |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
and with the comments from the login area just above |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
$this->Cms->render( array('view' => 'index')); |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
the only difference i can see is this line |
# |
Jan 29th 2014, 06:01 |
BackEndCoder |
ok so |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
one is overview action the other is cms_index action |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
yes |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
index.ctp and cms_index.ctp |
# |
Jan 29th 2014, 05:56 |
BackEndCoder |
and are they from the same controller |
# |
Jan 29th 2014, 05:56 |
BackEndCoder |
can you give me the names of both views ? |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
the other view that is with a form |
# |
Jan 29th 2014, 05:56 |
Starcraftmazter |
BackEndCoder: i did, i linked to it |
# |
Jan 29th 2014, 05:55 |
BackEndCoder |
if its outside the plugin range |
# |
Jan 29th 2014, 05:55 |
BackEndCoder |
the only thing i can think of is the location of the view file |
# |
Jan 29th 2014, 05:53 |
BackEndCoder |
if you have a github link to the plugin or something like this i might be more helpful |
# |
Jan 29th 2014, 05:52 |
BackEndCoder |
its hard to check it without having the code infront of me |
# |
Jan 29th 2014, 05:50 |
BackEndCoder |
check the directorys inside plugin/plugin_name/views/helper for anyfiles that look like form, or a form extentnion |
# |
Jan 29th 2014, 05:49 |
BackEndCoder |
check out the app controller too, to make sure they don't override the form helper |