# |
Sep 22nd 2011, 12:22 |
isaqual |
http://pastebin.com/8L4pjJBi |
# |
Sep 22nd 2011, 12:22 |
isaqual |
Any idea how I can get work custom made helpers in shell ? |
# |
Sep 22nd 2011, 12:22 |
dakota |
fenix`: cakephp supports database sessions |
# |
Sep 22nd 2011, 12:21 |
fenix` |
if i wanted to store session relevant data in the database. |
# |
Sep 22nd 2011, 12:21 |
dakota |
why? |
# |
Sep 22nd 2011, 12:21 |
fenix` |
is there a way to get some kind of session id? |
# |
Sep 22nd 2011, 12:20 |
dakota |
accessing other controllers won't help with getting information to persist across requests |
# |
Sep 22nd 2011, 12:19 |
dakota |
fenix`: if you want something like context to persist across requests then sessions is the way to do it |
# |
Sep 22nd 2011, 12:19 |
fenix` |
the working environment. |
# |
Sep 22nd 2011, 12:19 |
dakota |
ACTION doesn't understand what fenix`is trying to do |
# |
Sep 22nd 2011, 12:19 |
fenix` |
store .. context |
# |
Sep 22nd 2011, 12:19 |
dakota |
fenix`: to do what? |
# |
Sep 22nd 2011, 12:18 |
fenix` |
the other option im looking at is session->read/write |
# |
Sep 22nd 2011, 12:18 |
dakota |
imo |
# |
Sep 22nd 2011, 12:17 |
dakota |
then it isn't data |
# |
Sep 22nd 2011, 12:17 |
fenix` |
want* |
# |
Sep 22nd 2011, 12:17 |
fenix` |
what if the data i wan't isn't in a model? |
# |
Sep 22nd 2011, 12:17 |
dakota |
fenix`: controllers should not need to 'talk' to each other. Rather your controller should call the correct method in the model that corresponds to the data you wish to get |
# |
Sep 22nd 2011, 12:16 |
dakota |
fenix`: your controllers are for controlling flow of data from models to views. |
# |
Sep 22nd 2011, 12:16 |
dakota |
~why |
# |
Sep 22nd 2011, 12:16 |
dakota |
bleh |
# |
Sep 22nd 2011, 12:16 |
fenix` |
im thinking of using getters and setters |
# |
Sep 22nd 2011, 12:16 |
dakota |
~tell fenix`about why |
# |
Sep 22nd 2011, 12:15 |
dakota |
fenix`: why? |
# |
Sep 22nd 2011, 12:15 |
fenix` |
can i directly call another controllers function and receive data from it? |
# |
Sep 22nd 2011, 12:12 |
diverdude |
dakota, yep..true |
# |
Sep 22nd 2011, 12:12 |
beou133 |
hello everyone |
# |
Sep 22nd 2011, 12:11 |
DidItAgain |
dakota is on a roll today |
# |
Sep 22nd 2011, 12:10 |
dakota |
I did nothing but point you to where you should have gone in the first place |
# |
Sep 22nd 2011, 12:10 |
diverdude |
dakota, thx |
# |
Sep 22nd 2011, 12:09 |
diverdude |
aha, App::uses('Xml','Utility'); debug(Xml::toArray(Xml::build($str))); :) |
# |
Sep 22nd 2011, 12:06 |
franki |
ah there!thanks a lot |
# |
Sep 22nd 2011, 12:05 |
franki |
thanks il ltry |
# |
Sep 22nd 2011, 12:05 |
franki |
ah |
# |
Sep 22nd 2011, 12:05 |
franki |
you mean in the ctp file? |
# |
Sep 22nd 2011, 12:05 |
dakota |
franki: echo $this->Session->flash(); |
# |
Sep 22nd 2011, 12:05 |
dakota |
franki: you need to output them in your layout/view |
# |
Sep 22nd 2011, 12:04 |
franki |
stupid question,where i can activate setflash messages?i was working on app dir and they worked,then i added a layout and they dont show up now |
# |
Sep 22nd 2011, 12:04 |
isaqual |
not usually talking myself :) |
# |
Sep 22nd 2011, 12:04 |
dakota |
diverdude: try reading the docs :) http://book.cakephp.org/2.0/en/core-utility-libraries/xml.html |
# |
Sep 22nd 2011, 12:03 |
isaqual |
any sense ? |