http://apps.facebook.com/votigofbapp
On Aug 4, 1:09 am, Gwoo <[EMAIL PROTECTED]> wrote:
> what more do you need?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email t
Yes, here's my view:
Registration Information
First
Name*:input('Account.first_name',
array('class'=>'required','label'=>false,'size'=>'30'));?>
Hi,
I am using Cake 1.1.xxx ...
On Aug 3, 7:02 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Cake 1.2 ?
>
> echo $form->input('username');
>
> On Aug 4, 3:45 am, phpcurious <[EMAIL PROTECTED]> wrote:
>
> > when I use $html helper,
> > and code
> > $html->input("username",array("type"=>"te
I suppose you have a form submitting data to your create function ?
can you paste the form code (view) as well ?
On Aug 4, 4:07 am, pbland <[EMAIL PROTECTED]> wrote:
> Forgot to mention that I had cake 1.1 and it didn't work, so I
> upgraded to 1.2.0.5427 and still nothing.
--~--~-~--~-
Forgot to mention that I had cake 1.1 and it didn't work, so I
upgraded to 1.2.0.5427 and still nothing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-ph
I've spent the last 2 days trying to get my save() to work with no
luck. I've reviewed everything. Twice. I've checked this group for
things to look for and everything looks correct. I've printed my model
and it has the data:
Array
(
[Account] => Array
(
[first_name] => Jo
Regardless of what anyone one thinks, I'm here partly by luck.
I downloaded both Cake and CI. My initial decision was made in the first 10
minz. I could get Cake up and running but not CI. That's it. So cake it was.
A lot of people say that Cake is more difficult to set up that CI, but I
didn't fi
Cake 1.2 ?
echo $form->input('username');
On Aug 4, 3:45 am, phpcurious <[EMAIL PROTECTED]> wrote:
> when I use $html helper,
> and code
> $html->input("username",array("type"=>"text"));
>
> it says,
> Notice: Undefined offset: 1 in XXX\cake\libs\view\helpers\html.php on
> line 947
>
when I use $html helper,
and code
$html->input("username",array("type"=>"text"));
it says,
Notice: Undefined offset: 1 in XXX\cake\libs\view\helpers\html.php on
line 947
I had to hide this by changing debug from 1 to 0...
I hope somebody tells me what I am doing wrong...
--~--~-
The exact line to add to your post model is:
var $hasMany = array('Comments');
And yep it is that easy :)
As for the error - when you turned debug on up to 2 do you get a Controller
missing action or something like that?
Geoff
On 8/3/07, Dan Soendergaard <[EMAIL PROTECTED]> wrote:
>
>
> > This
I apologize for the waste of space, I figured it out. My AppController
file had a $uses = Angler and it was giving everyone a free ride.
That's why the Trip controller could invoke it directly instead of
$this->Trip->Angler-> etc.
pr($this) can be a powerful tool if you look closely enough -- it
I forgot to mention I'm using the 1.2 5427 alpha code
--~--~-~--~~~---~--~~
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,
I am having a bit of strange behavior I hope someone can straighten me
out on.
2 classes, Angler and Trip:
Angler hasMany Trip
Trip belongsTo Angler
angler_id is in the Trip Table
I have a function showtrips($angler_id = null) in the Trips Controller
that displays trips or angler trips depending
Try:
cake 1.1
( uses('model' . DS . 'connection_manager');)
$db = & ConnectionManager::getDataSource('default');
if (isset($db->error))
{
debug($db->error);
}
On Aug 3, 8:45 pm, Steveston <[EMAIL PROTECTED]> wrote:
>
come one ... can anyone help me?
--~--~-~--~~~---~--~~
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
What if I did NOT want the webroot files to be at the actual webroot
(at least during develpment/testing, where there are multiple websites
on a shared server?)
i.e. How can I move the /cake_install/app/webroot files into /
public_html/app/webroot WITHOUT having to set the actual www webroot
to b
This is the structure that I was thinking of...
/cake/cake/
/cake/cake/config/
/cake/cake/docs/
/cake/cake/libs/
/cake/cake/scripts/
/cake/cake/app_controller.php
/cake/cake/app_model.php
/cake/cake/basics.php
/cake/cake/bootstrap.php
/cake/cake/dispatcher.php
/cake/vendors/
/public_html/app/ <-
Okay I modified the library source to redirect to my controller
(observations/add)
new Ajax.Request( 'cake/observations/add', { method:
'POST',parameters: pars, onComplete: onCompleteCallBack });
The debug log message is below. Not really sure how to deal with this
(sorry, new to Cake and Ajax)
I'm new to CakePHP - ready to learn it - so I'm trying to set it up on
a shared hosting account.
currently, when I log into my account via FTP, i get into one level
above the public_html (webroot).
I'd like to put the CakePHP libraries/framework there... and all of
the site's stuff (i.e. "apps/v
I don't know whether you all face this problem but i have faced it but
i don't know why ?
I have installed cakephp and writes an view etc. having some form
fileds with code as
"Name : *input('UnivcommMember/
lname'))?>"
having 3-4 text fields. when i saw the form in the FIREFOX and try to
cli
Hi!
Just one question. I need to localize a Cake app. I thought on using
Poedit to generate the .pot file, but I don't know where to start.
I've used Poedit in the past to localize a few WordPress plugins, but
a Cake app is a totally different beast. Can anyone help me, please?
Thanks in advanc
I'm on cake 1.1 and am using the pagination component to do the paging
for a site I am doing. Everything was working fine until a few minutes
ago when I noticed that the page numbers weren't showing up. Upon
closer inspection, I realized that the number of results wasn't
showing up and neither was
what more do you need?
--~--~-~--~~~---~--~~
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]
My Question
(Short version)
Can anybody tell me how to capture MySQL error and pass it to end
users?
Is there something like $this->set('db_error', some-built-in-function-
to-get-db-error-msg-as-a-string) in Cake?
PHP has mysql_error function, which returns mysql error msg as a
string. Is ther
When saving the data are store in the model in the $data array. So you
can use :
$this->flash('The post \'' .$this->Post->data['Post']['name']. '\' has
been added.', '/
posts');
Do not mix $this->data at controller level and $this->Model->data.
Of course the field is present if it was saved (pa
On Aug 3, 10:24 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> define ('BASE_URL', env('SCRIPT_NAME'));
That seemed to do it. Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to
Hi guys,
This is probably a stupid noob question but I wanted a bit more
clarification on how the fields are stored in a model. When you call
read() or save() on the model, is the data stored anywhere inside the
model? For example, if I have this code in a controller:
function add()
{
Hi,
I'm curious if there exists anything similar to rfacebook (http://
rfacebook.rubyforge.org/) for cakephp ?
I'm starting to build facebook port for my cake application, does
anyone have any experience with making this combination work ?
I found this little article :
http://www.zenperfect.co
Say, i made some sort of blog. I have Post model and Comment model.
Post has-many Comment. post view only show comment related to that
certain post, thus, only show comments which id equals to the current
post id.
I am trying to make that kind of conditions, but that doesn't work. It
gave me err
On Aug 3, 2007, at 10:32 AM, CakeMan wrote:
>
> Hi friends,
> i am very new to Cakephp and developing an application in which i have
> menus that are dyanmic and i am extracting from the database. So i
> want to show them in all the pages for that these menus will be in the
> Default.thtml. But
Hi friends,
i am very new to Cakephp and developing an application in which i have
menus that are dyanmic and i am extracting from the database. So i
want to show them in all the pages for that these menus will be in the
Default.thtml. But the problem is default.thtml has no controller and
model.
You can try using cakes internal rewrite (shared hosts often impose
restrictions)
in the config/core.php
/*
* To configure CakePHP *not* to use mod_rewrite and to
* use CakePHP pretty URLs, remove these .htaccess
* files:
*
* /.htaccess
* /app/.htaccess
* /app/webroot/.htaccess
*
* And u
On Aug 2, 11:25 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> Silly question to ask here - you going to get a bunch of Cake fans
> saying that Cake is the best (which of course it is) :)
>
But, I'm also in forums for: django, turbogears, pylons, and
codeignitor. Although there is often some bias,
Excellent!
Worked great!
Thanks, francky06l
--~--~-~--~~~---~--~~
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 emai
On 8/3/07, Jerome Eteve <[EMAIL PROTECTED]> wrote:
> > We have encountered similar problems for Indian languages in the past...
> >
>
> Do you remember how you solved it ?
>
We did not solve it - since it was a system level problem, fedora core
6 on wards the problem was solved
Tarique
--
On Aug 3, 9:12 am, "Christophe C." <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Make sure you have the directive AllowOverride set to All for your
> current directory, for your htaccess to override apache's default
> configuration.
I changed that, and then did an apache stop/apache start, but it
didn't
On Aug 3, 8:07 am, citrus <[EMAIL PROTECTED]> wrote:
> Are you sure that mod_rewrite is enabled in your setup?
>
I can not find mod_rewrite anywhere in my httpd.conf file. I am using
debian 4.0 testing, and I installed apache with a: aptitude install
apache. I think I may have an old version. May
Hi,
Make sure you have the directive AllowOverride set to All for your
current directory, for your htaccess to override apache's default
configuration.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" gro
On 3 Aug, 12:23, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 8/3/07, Jerome Eteve <[EMAIL PROTECTED]> wrote:
>
>
>
> > This problem doesn't appear in ie for linux ( from
> >http://www.tatanka.com.br/ies4linux/page/Main_Page) nor in ie or
> > firefox for windows
>
> > I'm a bit confused.
>
Are you sure that mod_rewrite is enabled in your setup?
On Aug 3, 8:52 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> Trying to learn cake. I installed cake on my local debian system in /
> var/www/cake. I have apache 1.3 installed. When I go tohttp://localhost/cake/,
> I the intro page, but there i
Trying to learn cake. I installed cake on my local debian system in /
var/www/cake. I have apache 1.3 installed. When I go to http://localhost/cake/,
I the intro page, but there is only black on white text. No images, no
colors - except for blue links.
I'm using the IceWeasle browser, it works fi
> This usually indicates that either mod_rewrite is not working or you
> have fiddled with your paths in config/core.php
mod_rewrite is working as far as I can see. Also, since I can navigate
to /posts/ without any problem, there must be some other cause. Oh, I
sorted it out by turning on debuggi
Just a typo :
$this->set('savedProject', $savedProject);
On Aug 3, 2:26 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > I am using the below lines of code to save the 'project' module in my
> > cakephp application. After saving the project module i like to
> > retrieve the id,name of th
> Just a typo :
> $this->set('savedProject', $savedProject);
good eyes - well spotted...
jb
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~-~--~~~---~--~~
You received this message beca
Hi again,
Okay, so I finally experimented enough and got cookie sharing working.
However, since CakePHP rewrites the cookie every time a page is
loaded, if I login to SMF, go to the cake section and then go back to
SMF, I have to login again. I figure I need to direct Cake to use
SMF's cookie dat
cakephp.org is down?
Anybody can tell me what happened?
--~--~-~--~~~---~--~~
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
> I am using the below lines of code to save the 'project' module in my
> cakephp application. After saving the project module i like to
> retrieve the id,name of the project. The current save method is not
> returning the saved the row from database. (Note: I am 3 days old in
> Cake. Please apolo
Okay, that makes sense. I will go ahead and do this but I have another
question which I may need to address.
The data stored in the two cookies are different. It seems CakePHP
stores the session ID (right?) whereas SMF stores the session ID in
some sort of scrambled format. Would it matter which
I am using the below lines of code to save the 'project' module in my
cakephp application. After saving the project module i like to
retrieve the id,name of the project. The current save method is not
returning the saved the row from database. (Note: I am 3 days old in
Cake. Please apologize my mi
Ok that sheds some light - the two cookies will have different paths
associated with them.
Correct me if I am wrong but you are using smf to log a user in. This
creates a cookie with the path /forum associated with it. When you go to /
or /controller Cake cannot access the cookie because it is ou
On 8/3/07, Jerome Eteve <[EMAIL PROTECTED]> wrote:
>
> This problem doesn't appear in ie for linux ( from
> http://www.tatanka.com.br/ies4linux/page/Main_Page ) nor in ie or
> firefox for windows
>
> I'm a bit confused.
>
Just hazarding a guess here - could it be that different fonts set are
bein
no need to work hard:
google.com: php.net modules apache
http://il.php.net/apache [this was the first sub-result] (PHP: Apache-
specific Functions - Manual)
http://il.php.net/manual/en/function.apache-get-modules.php (after
reading the page..)
On Aug 2, 5:00 pm, "Sascha Fröhlich" <[EMAIL PROTEC
Hi all,
we are currently translating our website in japanese. Our system and
our website is full utf-8 .
Here is a problem we have:
Under linux/firefox 2.0 , the rendering is different if a webpage is
encoded in euc-jp or in utf-8.
I did some tests with yahoo.jp home page:
- Have a look at y
Why is the server not available?
--~--~-~--~~~---~--~~
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
Also, not sure if this will help, but browsing to the forum creates a
new cookie by the same name as CakePHP (since I changed CakePHP's
session name to be the same as SMF). I verify this using web developer
toolbar's cookie information tool. There are two cookies, both by the
name SMFCookie655, bo
Hi Geoff,
First of all, thanks for your response.
Now, the SSI.php file that SMF provides for includes has defined a
bunch of functions that have the prefix ssi. For example, the function
ssi_welcome() prints out a welcome message (Welcome back username, you
have x messages) or a login message (
Download PEAR.php from the pear site and put it in your vendors
folder. That should do the trick.
On Aug 2, 9:24 am, rtanz <[EMAIL PROTECTED]> wrote:
> im trying to use pear with cakephp, i installed it using the uniserver
> installer so now pear is located at W:\home\admin\www\plugins\pear/
> PE
Who used phpgacl-cake component?
--~--~-~--~~~---~--~~
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
On 8/3/07, luke BAKING barker <[EMAIL PROTECTED]> wrote:
>
> Ketan you may be right so far as scaling it goes, but I think that
> there may be reasonable ways around it like (if member of EDITORS
> group OR if its this users ID) then
>
If simple control is all you want then don't bother with ACL
Hi
Ketan you may be right so far as scaling it goes, but I think that
there may be reasonable ways around it like (if member of EDITORS
group OR if its this users ID) then
let them edit etc
else
don't...
thanks for all your replies, a good help.
Luke
On Aug 2, 11:31 am, Fran Simó <[EMAIL PR
thanks for your replies! I'll try today...
--~--~-~--~~~---~--~~
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
Hi,
I have a form to add users to my database.
I want the Doctornumber(id) & subdomain to be unique( no duplicates)
I tried the following
http://bakery.cakephp.org/articles/view/checking-for-duplicate-records-unique-record
the add user function has the following code
if (!empty($this->da
Ok, so move your app_controller.php to vendors too, and call
vendor('app_controller'); before calling vendor('model_controller');
On Aug 2, 4:35 pm, safl <[EMAIL PROTECTED]> wrote:
> I just tried out your suggestion, however i ended up with the same
> issue as just doing a "require" from bootstr
Hello guys, please say me, how i can make rule for PHPGacl. I need
DENY /news/view/123, and ALLOW all another articles, but i don't see
this features in PHPGACL CAke Control panel. I try make Controllable
Elements (AXOs) as view(123) and view/123,but it's not work. Help me
please.
--~--~
64 matches
Mail list logo