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
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
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
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
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
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
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
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
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
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
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);
> В конструк
My solution to this is to put, in the layout file, before all other js
includes, this line:
var wr = '=$this->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
> 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
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:
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
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
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
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
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
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
> > 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
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
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.
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') ?>
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
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-
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
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
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
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
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
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
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
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
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
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
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', '
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('
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
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
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
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
Возможно, Вы, возможно, больше повезет с просьбой в английский ..
, к сожалению, я не знаю ответ на свой вопрос.
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:
> Я столкнулся возможно с ошибкой и
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.
--~--~-~--~~~---~--~~
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.
--~--~-~--~~~---~--~~
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
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
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
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
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
Я столкнулся возможно с ошибкой или это так и должно работать... ?
В модели User написано:
$var validate=array('username'=>VALID_NOT_EMPTY,
'email'=>VALID_MAIL);
В конструкторе для проверки данных сначала использую функцию
в index():
$this->User->validates($this->data);
После этого я проверя
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
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
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
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
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.
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
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
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
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
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
61 matches
Mail list logo