# |
Sep 12th 2009, 18:44 |
unclezoot |
can you use CRI to load the element im thinking |
# |
Sep 12th 2009, 18:44 |
AD7six |
dogmatic69: for $this->element to work, what does $this need to be |
# |
Sep 12th 2009, 18:43 |
dogmatic69 |
*there |
# |
Sep 12th 2009, 18:43 |
dogmatic69 |
if it was just for the helper i would have just made a fundtion in the helper and put the html ther |
# |
Sep 12th 2009, 18:42 |
dogmatic69 |
no |
# |
Sep 12th 2009, 18:42 |
AD7six |
dogmatic69: does your element exist only for the helper to use |
# |
Sep 12th 2009, 18:41 |
dogmatic69 |
btw, i want to render an element in a helper for the reason elements exist... shoing the same html bits over and over with out coding it all over the place |
# |
Sep 12th 2009, 18:38 |
AD7six |
NoReGreT: in the book, but it's just a form like any other |
# |
Sep 12th 2009, 18:37 |
dogmatic69 |
thanks |
# |
Sep 12th 2009, 18:36 |
AD7six |
dogmatic69: instead of giving you an answer I'll just say "some characters, that form a sentance" then |
# |
Sep 12th 2009, 18:36 |
dogmatic69 |
just some divs |
# |
Sep 12th 2009, 18:35 |
dogmatic69 |
it an element "message" in folder ajax |
# |
Sep 12th 2009, 18:34 |
AD7six |
dogmatic69: what's in ajax/message |
# |
Sep 12th 2009, 18:33 |
dogmatic69 |
line 21 |
# |
Sep 12th 2009, 18:33 |
dogmatic69 |
http://bin.cakephp.org/view/246434004 |
# |
Sep 12th 2009, 18:32 |
dogmatic69 |
!bin |
# |
Sep 12th 2009, 18:32 |
dogmatic69 |
that is the exact line in the helper |
# |
Sep 12th 2009, 18:32 |
AD7six |
dogmatic69: why do you want to render an element, from a helper |
# |
Sep 12th 2009, 18:32 |
dogmatic69 |
AD7six: dont know what you want to know? |
# |
Sep 12th 2009, 18:31 |
AD7six |
dogmatic69: I didn't ask you to repeat what you already said |
# |
Sep 12th 2009, 18:30 |
dogmatic69 |
look for the auth tut in book.cakephp.org |
# |
Sep 12th 2009, 18:29 |
NoReGreT |
where can I find a sample login page in cakephp ? |
# |
Sep 12th 2009, 18:26 |
dogmatic69 |
\o/ |
# |
Sep 12th 2009, 18:26 |
dogmatic69 |
my ftp just made my file look like this ????? ????????????? ??????? ??????????? |
# |
Sep 12th 2009, 18:26 |
dogmatic69 |
$this->element( 'someelement' ); in a helper |
# |
Sep 12th 2009, 18:20 |
AD7six |
dogmatic69: what's your use case |
# |
Sep 12th 2009, 18:19 |
unclezoot |
dont answer your question mind |
# |
Sep 12th 2009, 18:19 |
unclezoot |
i know you can call js and css from the plugin helper |
# |
Sep 12th 2009, 18:19 |
unclezoot |
that's a good question |
# |
Sep 12th 2009, 18:15 |
dogmatic69 |
is it posible to call a element from a helper? |
# |
Sep 12th 2009, 17:51 |
unclezoot |
vs class Advantage extends AppModel { |
# |
Sep 12th 2009, 17:50 |
unclezoot |
you cant spell var $name = 'Avantage'; |
# |
Sep 12th 2009, 17:50 |
unclezoot |
hehe |
# |
Sep 12th 2009, 17:46 |
dogmatic69 |
i think that might only work in the controller |
# |
Sep 12th 2009, 17:45 |
dogmatic69 |
change var $useTable = 'users'; to var $uses = array( 'User' ); |
# |
Sep 12th 2009, 17:39 |
Hedz |
thun_ and how do you use the model? |
# |
Sep 12th 2009, 17:38 |
thun_ |
line #9 already fixed and still same error |
# |
Sep 12th 2009, 17:37 |
thun_ |
http://pastebin.com/m2f55c330 |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
pr( $this->Model ); |
# |
Sep 12th 2009, 17:34 |
Hedz |
thun_ bin your model |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
its the rendering and dl that is the problem |