Re: retaining Session variables before and after log in

2007-10-04 Thread Grant Cox
Why is a new session created when they log in? On Oct 5, 12:57 pm, bingo <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to create something like amazon, where user can browse > items and put in cart and after that log in to checkout items. > However, currently I am storing items in a session v

retaining Session variables before and after log in

2007-10-04 Thread bingo
Hi, I am trying to create something like amazon, where user can browse items and put in cart and after that log in to checkout items. However, currently I am storing items in a session variable. The problem, once the user logs in, a new session is created and I lose all the information about the

Re: accessing view using an alias

2007-10-04 Thread dardosordi
I think you can do Router::connect('/newproduct/:action', array('controller' => 'new_product' )); On Oct 4, 4:56 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > You should be able to do this in your routes.php file... > > Router::connect('/newproduct/[action1]', array('controller' => > 'new_produ

Re: Stored Procedure Parameters

2007-10-04 Thread Grant Cox
I didn't answer Cory because I didn't know the answer - it's a behaviour of Cake that I've never really understood. When you request a model function that doesn't exist (ie $this- >MyModel->do_some_stuff() ), then "do_some_stuff" is attempted to be executed as SQL. I've never used stored procedu

Re: Need CakePHP developer

2007-10-04 Thread Tobias Parent
Comida411 wrote: > Where can I go to find or post jobs for cakePHP developers? > Thank you for your response... > Sincerely > Comida411 Every so often this comes up - go to http://withcake.com/ Regards, -Toby --~--~-~--~~~---~--~~ You received this message becaus

Re: Need CakePHP developer

2007-10-04 Thread Olexandr Melnyk
Not CakePHP-specific, but there may be some CakePHP developers on SitePoint Marketplace ( http://www.sitepoint.com/marketplace/ ) On 10/5/07, Comida411 <[EMAIL PROTECTED]> wrote: > > > Where can I go to find or post jobs for cakePHP developers? > Thank you for your response... > Sincerely > Comida

Comment Controller

2007-10-04 Thread dixon_
Hi all bakers! I'm developing just another CMS application to learn the Cake framework. Really impressed so far! I'm implementing a commenting system to my posts on the blog. I've associated Comment and Post models correctly and placed the submission form in an element that is rendered from the

Need CakePHP developer

2007-10-04 Thread Comida411
Where can I go to find or post jobs for cakePHP developers? Thank you for your response... Sincerely Comida411 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to c

Re: accessing view using an alias

2007-10-04 Thread Wayne Fay
You should be able to do this in your routes.php file... Router::connect('/newproduct/[action1]', array('controller' => 'new_product', 'action' => '[action1]')); Substitute view, add, delete etc as appropriate for [action1]. You will need 1 row in the file for each action in your controller. Wa

Re: Debug not working / queries aborting

2007-10-04 Thread dardosordi
Maybe is the zend optimizer extension again? Search this group, i'm just guessing that it can be, it's evil! On Oct 3, 7:46 pm, francky06l <[EMAIL PROTECTED]> wrote: > Well there might be a solution by writing in the log or print_r how > far you go. Start in the index.php of webroot, then dispat

Re: Проблема с проверкой данных формы

2007-10-04 Thread [EMAIL PROTECTED]
Welcome to http://groups.google.com/group/cake-php-ru ;) On Oct 4, 4:53 pm, starosta <[EMAIL PROTECTED]> wrote: > Я столкнулся возможно с ошибкой или это так и должно работать... ? > В модели User написано: > > $var validate=array('username'=>VALID_NOT_EMPTY, > 'email'=>VALID_MAIL); > В конструк

Re: Accessing webroot from javascript file

2007-10-04 Thread radius
My solution to this is to put, in the layout file, before all other js includes, this line: var wr = 'webroot?>'; now the variable wr is available in all your js scripts. On Oct 4, 3:13 pm, Joel Stein <[EMAIL PROTECTED]> wrote: > I have started to get in the habit of keeping all my lin

Re: Undefined property when accessing helper from within element

2007-10-04 Thread Jon Bennett
> print_r($this) does wonders :) so does: debug($this); and pr($this); :) jb -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

accessing view using an alias

2007-10-04 Thread [EMAIL PROTECTED]
Hello, Not sure how to explain this best, so I'll try my best to break down what is probably a simple issue. database is 'new_products' controller is 'new_products_controller' model is 'new_product' Everything works fine at www.domain.com/new_product, but I wish to access this by visiting http:

Accessing webroot from javascript file

2007-10-04 Thread Joel Stein
I have started to get in the habit of keeping all my links relative to the webroot, by taking advantage of $html->link(). It's a wonderful feature, because it allows me to put my website under any directory and everything just works. However, one difficulty I encountered was accessing the webroo

Re: Leading Zeros Getting Stripped

2007-10-04 Thread [EMAIL PROTECTED]
Thanks for the reference Chris! I fixed the issue by using str_pad in the afterFind callback of my model to repair the ISBN. On Oct 4, 2:19 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I'm not sure if this is a CakePHP issue

Re: Leading Zeros Getting Stripped

2007-10-04 Thread Chris Hartjes
On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm not sure if this is a CakePHP issue or PHP in general, but I have > a table in which I'm storing ISBN numbers in a VARCHAR(32) column. > ISBNs can start with a zero (like 0137903952), but my model is > returning the ISBN with the lea

Leading Zeros Getting Stripped

2007-10-04 Thread [EMAIL PROTECTED]
I'm not sure if this is a CakePHP issue or PHP in general, but I have a table in which I'm storing ISBN numbers in a VARCHAR(32) column. ISBNs can start with a zero (like 0137903952), but my model is returning the ISBN with the leading zero removed. Does anyone know why this is occurring, and if

Re: MySQL driver problem?

2007-10-04 Thread Mike Green
as you are connecting through a domain (is there a reason why it isnt localhost) then its possible that you may benefit from using mysql_pconnect rather than mysql_connect give it a try and see how you get on. failing that, there may be a problem with your mysql host.. Best regards Mike On

Re: Cakephp multiple applications

2007-10-04 Thread francky06l
If you use the same cake core libs, I do this on production : Into the document root (www or htdocs), set a folder matching the webroot of your app1 / app2 + www + app1 - index.php - .htaccess + js + img + css + app2 - in

Re: Cake 1.2 - Enums and auto-populate field after dropdown selection

2007-10-04 Thread Wayne Fay
> > First off, I have a couple enums in a table in my app. Under Cake 1.1, > > the enums were turned into a dropdown and displayed properly. Using > > cake_1.2.0.5427alpha, I don't get the dropdowns. I haven't tried any > > Well, give some more details. Are you using scaffold? Have you updated > t

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
Oh I found the answer with Mike's help. Should be rewritten to: Please log in. formTag('/users/login') ?> Username: inputTag('User/username', array()) ?> Password: passwordTag('User/password', array()) ?> submitTag('login') ?> link('register', '/users/register') ?> Helpful to those who try t

Re: Undefined property when accessing helper from within element

2007-10-04 Thread Robert Berkowitz
Ok, sorry about the post... I figured it out. To access the helper you must call it like: $customHelper->method(); print_r($this) does wonders :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: Trivial question

2007-10-04 Thread val
Thanks Mike! I followed the IBM 2nd tutorial from it's 5 series. So now it works fine. If anyone interested I changed the code to: Please log in. formTag('/users/login') ?> Username: inputTag('User/username', array()) ?> Password: passwordTag('User/password', array()) ?> submitTag('login') ?>

Re: MySQL driver problem?

2007-10-04 Thread Dani
Hi, thanks for your reply. The database is hosted locally. I don't have anything strange on the db config, as you can see class DATABASE_CONFIG { var $default = array('driver' => 'mysql', 'connect' => 'mysql_connect', 'host' => 'o

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
Thank you! Solved the problem! Another question from the code above- http://localhost/users/login gives this: Parse error: syntax error, unexpected ')', expecting '(' in /var/www/ cake/app/views/users/login.thtml on line 11. The login.thtml was copied from IBM tutorial. I guessed that $html-

Re: Process Flow - Controller to Controller

2007-10-04 Thread dardosordi
I think a User HABTM Group, or (if only one group per user is allowed) Group hasMany User. On Oct 4, 9:06 am, TGG008 <[EMAIL PROTECTED]> wrote: > you can alseo use RequestHandel component. > > to do this kind of things > > requestAction('controller/action') RequestHandler isn't for that. But of

Undefined property when accessing helper from within element

2007-10-04 Thread Robert Berkowitz
I am trying to access a custom helper from within an element like so: $collateral = $this->requestAction('collateral/infocus_latest'); $data = $this->CustomHelper->method($collateral[data][moredata]); And I get the following error: Notice: Undefined property: View::$CustomHelper in blah

Re: Cake 1.2 - Enums and auto-populate field after dropdown selection

2007-10-04 Thread dardosordi
On Oct 3, 2:04 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > First off, I have a couple enums in a table in my app. Under Cake 1.1, > the enums were turned into a dropdown and displayed properly. Using > cake_1.2.0.5427alpha, I don't get the dropdowns. I haven't tried any > nightly builds but am

Re: How can I display results of more than one controllers on one page?

2007-10-04 Thread dardosordi
On Oct 4, 3:55 am, jonghoon <[EMAIL PROTECTED]> wrote: > Hi all, Hi, > I already have controllers and views for each section - > BoardsController::showSummary( $bordid ) > BoardsController::showUsers( $boardid ) > etc. > > Is there any other way but to use ? > Any suggestions will

Re: HABTM question from newbie

2007-10-04 Thread dardosordi
I don't think that making a model for that join table cause you some trouble, anyway I see no use of it. On Oct 4, 12:26 am, Comida411 <[EMAIL PROTECTED]> wrote: > Rt, > Can you clarify... I mean the auto create feature is a convenience... > right... > The alternative is for me to create the mode

Re: Trivial question

2007-10-04 Thread Mike Green
array is a function the last time i checked input('User/username', array()) ?> Password: password('User/password', array()) ?> I'm not entirely sure why you would pass an empty array in either case.. Then again it's been a while since i looked at the 1.1 stuff. Mike On Oct 4, 3:36 pm, val

Re: adding $uses to app_controller breaks javascript helper

2007-10-04 Thread Brent Rieck
AD7six wrote: > comment out in your layout where you are using the js helper and read > the error message which cake is desperately trying to get you to read. > also you could/should add the js helper to your app controller helpers > array, since obviously you are using it everywhere. That was it

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the end of the file. Erase it. On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote: > Instead redirecting, i get this.. Any Ideas? > > login.thml: > if ($error) > { > e('Invalid Login.');} > > ?> > > Please log in. > > > form('/users/login') ?> > Username: > input('Us

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the en of the file. Erase it... On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote: > Instead redirecting, i get this.. Any Ideas? > > login.thml: > if ($error) > { > e('Invalid Login.');} > > ?> > > Please log in. > > > form('/users/login') ?> > Username: > input('U

Re: HTML4 Strict Doctype doesn't validate using $html->docType('html4-strict')

2007-10-04 Thread Chambrln
That will work for some of the elements, but some of them are ' %s/ >' and I'm guessing the %s is used somewhere. I'd have to do a str_replace(' %s/>', '%s>', $value); the extra space didn't cause a problem with validation. I don't like the look of the extra space, but it wasn't enough to bot

Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on lin

2007-10-04 Thread val
Instead redirecting, i get this.. Any Ideas? login.thml: Please log in. form('/users/login') ?> Username: input('User/username', array) ?> Password: password('User/password', array) ?> submit('login') ?> link('register', '/users/register') ?> users_controller.php: set('username_error', '

Trivial question

2007-10-04 Thread val
Hi, I'm following the IBM tutorial #2. The code suggested there for login.thtml is: - Please log in. form('/users/login') ?> Username: input('User/username', array) ?> Password: password('User/password', array) ?> submit('

Re: Stored Procedure Parameters

2007-10-04 Thread John David Anderson
On Oct 4, 2007, at 9:06 AM, Cory Dee wrote: > > Bump? Un bump? Usually if you haven't got any bites, you need to add to or revisit your question. -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake P

Re: Stored Procedure Parameters

2007-10-04 Thread Chris Hartjes
On 10/4/07, Cory Dee <[EMAIL PROTECTED]> wrote: > > Bump? > Did you try looking at the source code itself for that method? Probably the easiest way to figure out what it wants passed in. -- Chris Hartjes Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: "Just buil

Re: cake deployer

2007-10-04 Thread Dave J
Hi Dan, here's basically the commands that would do a basic deployment using SSH/SVN. I'm currently rewriting the whole thing as a console script for cake, so to keep the deployment script as part of the main project (relying only on svn and rsync as external libraries). What needs to be noted i

Re: Stored Procedure Parameters

2007-10-04 Thread Cory Dee
Bump? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options

Re: Проблема с проверкой данных формы

2007-10-04 Thread Mike Green
Возможно, Вы, возможно, больше повезет с просьбой в английский .. , к сожалению, я не знаю ответ на свой вопрос. perhaps you may have more luck asking in english.. sadly i do not know your answer. Mike On Oct 4, 1:53 pm, starosta <[EMAIL PROTECTED]> wrote: > Я столкнулся возможно с ошибкой и

Discussion sur cake-apps-sites-in-the-wild

2007-10-04 Thread cyberscorp
Hello, Who is Using is a directory of sites using opensources : http://www.whoisusing.net/index.php?lg=en You can add your sites using cakephp in the category Frameworks > CakePHP http://www.whoisusing.net/cakephp-c-40.html Thanks a lot. --~--~-~--~~~---~--~~

Directory of sites using Cakephp [whoisusing.net]

2007-10-04 Thread cyberscorp
Hello, Who is Using is a directory of sites using opensources : http://www.whoisusing.net/index.php?lg=en You can add your sites using cakephp in the category Frameworks > CakePHP http://www.whoisusing.net/cakephp-c-40.html Thanks a lot. --~--~-~--~~~---~--~~

Re: Process Flow - Controller to Controller

2007-10-04 Thread TGG008
you can alseo use RequestHandel component. to do this kind of things requestAction('controller/action') On 10月4日, 上午2时46分, starkey <[EMAIL PROTECTED]> wrote: > Yeah, I have created a hasMany relationship in the User model to > Groups. Are you saying the User controller, on save(), will > autom

Re: adding $uses to app_controller breaks javascript helper

2007-10-04 Thread auyongtc
Brent, In your code of var $uses = array(), does the include the Javascript helper? If you did not, it needs to be added whenever you manually specify the $uses variable. If you did, we'll need more information like a bigger snippet of your code as well as the CakePHP version number, for context

Cakephp multiple applications

2007-10-04 Thread cakenewbie
Hi All, I am creating two applications to run on cakephp. Both applications have different databases. So i am thinking of using the development setup of cakephp (as per the cakephp manual) to make them both work simultaneously. This is what I have done so far- 1. Created a www folder -> apache r

Re: Objects instead of arrays

2007-10-04 Thread stefanb
Still get the same error. I'll just wait for Cake 2 On Oct 3, 3:56 pm, gwoo <[EMAIL PROTECTED]> wrote: > function beforeRender() { > $this->data = Set::reverse($this->data); > > } --~--~-~--~~~---~--~~ You received this message because you are subscribed to

modify the css of the table cells in the HtmlHelpers

2007-10-04 Thread NkOs
Hello, I try to modify the width of my Cells with a date, because it's too big in my table. I use $html->tableCells( $data, $oddTrOptions , $evenTrOptions ) method ; Tank you to help me :) NkOs --~--~-~--~~~---~--~~ You received this message because you are s

Проблема с проверкой данных формы

2007-10-04 Thread starosta
Я столкнулся возможно с ошибкой или это так и должно работать... ? В модели User написано: $var validate=array('username'=>VALID_NOT_EMPTY, 'email'=>VALID_MAIL); В конструкторе для проверки данных сначала использую функцию в index(): $this->User->validates($this->data); После этого я проверя

Re: CakaPHP in SOA

2007-10-04 Thread Marcin Domanski aka kabturek
or maybe disable the autocreation of session in core.php ? hint - AUTO_SESSION = false On Oct 2, 11:45 pm, CodeSith <[EMAIL PROTECTED]> wrote: > Anybody uses CakePHP in SOA environment? > I want to write some REST based web services using CakePHP. To get it > going is pretty simple. I will use

Re: Blog Tutorial 404s

2007-10-04 Thread nobrow
On Sep 26, 10:07 pm, nobrow <[EMAIL PROTECTED]> wrote: > On Sep 26, 10:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > Yeah, that all checked out fine. > > > > The reason I am harping on about .htaccess (and I realise I sound like > > > a broken record) is that the one in app c

Re: adding $uses to app_controller breaks javascript helper

2007-10-04 Thread AD7six
On Oct 4, 10:26 am, Brent Rieck <[EMAIL PROTECTED]> wrote: > Hello, >If I add a var $uses = array() to app/app_controller.php I > get the "Fatal error: Call to a member function on a non-object" error > whenever trying to use the javascript helper in my default layout. If I > comment out th

HdCalendar

2007-10-04 Thread [EMAIL PROTECTED]
I'm using the plugin Hdalendar but I 'm not able to use the events() function to set events on a day. Can anyone help me? Many Thanks Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

Re: Transport a ID in the URL

2007-10-04 Thread grigri
Check out my example from http://groups.google.com/group/cake-php/browse_thread/thread/cb8f54e19b46cc2e [messages 9 & 10] I use it all the time for changing how URLs are generated on a site- wide basis - mainly for SEO, although it clearly has other uses. Basic summary: * Create app/app_helper.

Re: MySQL driver problem?

2007-10-04 Thread Mike Green
Well, once thing, you can ignore all of the session errors, so that narrows it down to the two mysql errors you have. What is your db config? is your mysql server hosted locally? Are you using pconnect or connect? (and have you tested the one that you arent using). pconnect usually doesnt do an

Re: How can I display results of more than one controllers on one page?

2007-10-04 Thread grigri
The easy and quick answer is : use requestAction() [read manual on how to do so] Normally I wouldn't recommend using it though - I'd suggest refactoring your design so that you don't need to use multiple controllers. Make fat models and skinny controllers [1], in your home page controller method

adding $uses to app_controller breaks javascript helper

2007-10-04 Thread Brent Rieck
Hello, If I add a var $uses = array() to app/app_controller.php I get the "Fatal error: Call to a member function on a non-object" error whenever trying to use the javascript helper in my default layout. If I comment out the $uses line the javascript helper works as intended. Is there a wa

Re: cake deployer

2007-10-04 Thread cakeFreak
Hey Dave, can you please give me the full command to deploy with rsync from my local machine and: 1) the repository is on my localhost 2) I need to chmod the files to be accessible to another user, and not just the root admin that has ssh permission on my virtual server, on the server I'm a n

How can I display results of more than one controllers on one page?

2007-10-04 Thread jonghoon
Hi all, I'm going to make an entrance page of a cakePHP site. This entrance page will contain views of more than one controllers, for example article 1 of A article 2 of A article 3 of A article 1 of B article 2 of B article 3 of B user 1 of A user 2 of A ... I already have cont