# |
Sep 22nd 2011, 21:04 |
Kanibal |
yup. |
# |
Sep 22nd 2011, 21:04 |
TooMuchCaffeine |
did you bake models? |
# |
Sep 22nd 2011, 21:02 |
Kanibal |
Fatal error: Call to undefined method stdClass::find() in /mnt/hgfs/htdocs/project1/cake/libs/controller/controller.php on line 1204 |
# |
Sep 22nd 2011, 21:02 |
TooMuchCaffeine |
stack trace* |
# |
Sep 22nd 2011, 21:01 |
TooMuchCaffeine |
what's the stack? |
# |
Sep 22nd 2011, 21:01 |
Kanibal |
*some |
# |
Sep 22nd 2011, 21:01 |
Kanibal |
Notice (8): Undefined property: stdClass::$alias [CORE/cake/libs/controller/controller.php, line 1107] |
# |
Sep 22nd 2011, 21:01 |
Kanibal |
Hey! I just baked same fresh cake... but now my new controller throws some php-errors... anybody experienced similar problems? |
# |
Sep 22nd 2011, 20:55 |
scoutmstershke |
blah |
# |
Sep 22nd 2011, 20:50 |
scoutmstershke |
short tags aren't good practice |
# |
Sep 22nd 2011, 20:49 |
TehTreag |
EtRiGaN: http://schlueters.de/blog/archives/156-Improvements-for-PHP-application-portability-in-PHP.next.html |
# |
Sep 22nd 2011, 20:47 |
TehTreag |
<?= ?> will work without short tags being enabled. |
# |
Sep 22nd 2011, 20:47 |
NoReGreT |
how can I disable the "invalid login" flash message in login() ? the thing is taht i'm checking in login() if a user is already logged in, if he's logged in then flash a message, without any invalid login. I'm checking that logic in login()...any ideas ? |
# |
Sep 22nd 2011, 20:46 |
oronoa |
ok thx's for the tips guys |
# |
Sep 22nd 2011, 20:46 |
EtRiGaN |
O |
# |
Sep 22nd 2011, 20:46 |
TehTreag |
It's coming back... check the latest version of PHP. |
# |
Sep 22nd 2011, 20:46 |
EtRiGaN |
$ |
# |
Sep 22nd 2011, 20:46 |
EtRiGaN |
thats why i said "it was" |
# |
Sep 22nd 2011, 20:45 |
TehTreag |
EtRiGaN: I never use short tags... no errors/warnings when shorttags are disabled. |
# |
Sep 22nd 2011, 20:45 |
TehTreag |
~shorttags |
# |
Sep 22nd 2011, 20:45 |
TehTreag |
~tell EtRiGaN about shorttaggs |
# |
Sep 22nd 2011, 20:45 |
EtRiGaN |
its was nice to write <?=$value;?> xD |
# |
Sep 22nd 2011, 20:44 |
EtRiGaN |
its was nice to write < |
# |
Sep 22nd 2011, 20:44 |
EtRiGaN |
mmm |
# |
Sep 22nd 2011, 20:44 |
TehTreag |
oronoa: I know PHP... so the PHP is easier for me. |
# |
Sep 22nd 2011, 20:44 |
oronoa |
but it's nice to be able to write {{ $something }} and not <?php echo $something ?> don't you agree ? |
# |
Sep 22nd 2011, 20:43 |
TehTreag |
oronoa: You got that from - "In short, the point of template engines should be to separate your business logic from your presentation logic, not separate your PHP code from your HTML code." |
# |
Sep 22nd 2011, 20:43 |
oronoa |
I see your point, you are sayig template engines are just makeup :-) in essence they don't change a lot |
# |
Sep 22nd 2011, 20:41 |
TehTreag |
oronoa: I like the way he sums it up in the last paragraph. |
# |
Sep 22nd 2011, 20:41 |
TehTreag |
~tell oronoa about template-engines |
# |
Sep 22nd 2011, 20:41 |
TehTreag |
oronoa: Sure. Why not? |
# |
Sep 22nd 2011, 20:41 |
EtRiGaN |
using php directly as the framework recomends |
# |
Sep 22nd 2011, 20:41 |
oronoa |
? |
# |
Sep 22nd 2011, 20:40 |
oronoa |
so you guys recommand sticking with php that's what I gather |
# |
Sep 22nd 2011, 20:40 |
TehTreag |
oronoa: Good luck. |
# |
Sep 22nd 2011, 20:40 |
EtRiGaN |
anyway |
# |
Sep 22nd 2011, 20:40 |
oronoa |
thx |
# |
Sep 22nd 2011, 20:40 |
EtRiGaN |
yeap |
# |
Sep 22nd 2011, 20:40 |
EtRiGaN |
its kind of like the django template engine |
# |
Sep 22nd 2011, 20:40 |
oronoa |
nice ! coming from Django :-) |
# |
Sep 22nd 2011, 20:39 |
EtRiGaN |
the last engine i tried was h2o |