I have the same problem. Please can someone help? :) [2]
'Undefined variable: Hits [APP\models\behaviors\searchable.php, line
213]'
'Undefined variable: Hits [APP\models\behaviors\searchable.php, line
215]'
Any updates pola, iTodd?
The code differs a bit in thechaw (http://thechaw.com/cakebook/
Hi,
I'm new to CakePHP and I came across a little problem.
I created a scaffold to upload a list of schools to my database and
after uploading about 400, I noticed that some of the schools were
disappearing both from the scaffold view and the database. Since no
one else has access to my system,
I am wondering how I get the correct value to show up in my drop down
box when editing a record. When I click on the edit link from a view
(index) My value for the select box is not right.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
maybe scaffolding changes the "unique" attribute on the fly
On Jul 15, 4:52 pm, Defranco wrote:
> Hi,
>
> Myjointableadditional data get lost when I update any of the 2
> models that has HABTM relation:
>
> I have 2 models that has HABTM relation and thejointablebetween
> these has additional da
Yes but that pulls them from the /vendors/css/ and /vendors/js/
folders, not from /venders/some_other_folder/css/ etc.
Unless you can show me an example, I dont think its possible. I mean I
even asked one of the CakePHP guys and it didnt work.
--~--~-~--~~~---~--~~
I have a users table that stores a contact_id as well as a password. I
would like AuthComponent to use ['Contact']['email'] for the username
field and ['User']['pass'] for passwords. User hasOne Contact. These
are the methods I have tried without success:
Method #1 - Try and use Contact.email in
usually - if you look in your /app/webroot/js/ folder - you have a
file called vendors.php
that does what you are looking for:
* Short description for file.
*
* This file includes js vendor-files from /vendor/ directory if they
need to
* be accessible to the public.
yours, mark
On 1 Aug.,
$form->input() should always be used to build your forms. If you use
input(), the $data from your controller will automatically populate
these form fields if not empty. If you use radio() or something else,
it will not. So just use input() and pass the type option.
And to answer your problem, jus
@AD7six - I was referring more to a setup like this, probably should
of made it clearer.
/app/vendors/some_vendor_system/css/their_files.css
You are unable to link to those files by doing it like, or any other
alternative:
$html->link('/vendors/some_vendor_system/css/their_files.css');
I spent
this is exactly my point, miles!
as they are not triggered manually you need to do some stuff on your
own - if the component needs the controller $this object-reference
or if the startup() does some important initialization stuff
so for newbies who dont know what they do that sure is not an opti
these models
core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias
mod_asis mod_auth_basic mod_authn_default mod_authn_file
mod_authnz_ldap mod_authz_default mod_authz_groupfile mod_authz_host
mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include
mod_isapi util_ldap mod_log_c
Hi,
I'm using cake's AuthComponent for login/logout etc.
But sometimes when I click around the site I'm getting logged out.
No error message - nothing. Rarely I've also seen "white" screens. But
no error message on the screen (debug is enabled) and no errors in any
log files (webserver+cake).
Ok, so what kind of help would you need? I'll be happy to give you a hand
On Mon, Jul 27, 2009 at 12:25 AM, Dhileepen Chakravarthy <
dhileepen.cake...@gmail.com> wrote:
> Please help me anyone for cakephp with facebook implementation
>
>
> >
>
--~--~-~--~~~---~--~
On Jul 30, 9:33 pm, AD7six wrote:
> On Jul 30, 12:07 am, Miles J wrote:
>
> > You cant link to css/js in vendors. You have to place it in the
> > webroot js/css folders.
>
> based on what are you stating that?
Miles please be careful to check what you're posting. Many users will
follow what y
hi,
i have a simple view and controller and im doing useTable=false, but i still
get the error Database table missing. anyone knows why? thanks pete
class Administration extends AppModel {
var $name = 'Administration';
var $useTable = false;
}
--
View this message in context:
http:
Hi all,
I have a question with regards to the login method, which in the blog
tutorial in the manual and other tutorials is left blank and handled
magically by the Auth component.
I am concerned with security when it comes to what is input by the
user. Does the Auth component filter/clean the da
Dear all,
Thanks for your time. I've written a simple CakePHP+TinyMCE CMS and
I'm having a horrendous time tracking a very strange error. Specific
strings in any of the text fields are causing my website to do
something that looks like a 404 error.
These are the strings I have found so far - I c
You might wanna check the article again, there is a reply to your
comment.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
I would use delocalizer's idea just changing the $optarray to:
('0' => 'No', '1' => 'Yes', 'null' => 'No info')
Good look.
On Jul 31, 7:33 am, delocalizer wrote:
> As for the coding, just use the form helper's automagic radio input:
> eg
> input('fieldname',array('type'=>'radio','options'=>
>
Don't use his code exactly. $radio_btn is an array of the options for
the. Unless you make the array, leave that part out
Adam
On Jul 31, 1:53 pm, leafchild wrote:
> Thank you, Miles for your comment.
>
> sometimes I'm confused which one I should use.
> I thought I should use form
Hi
I would speed up loading time page so I would create only one
javascript and load it at the bottom of page.
Now I have this problem in this only one javascript I have also
prototype and scriptaculous and in my page I use for example Ajax
helper but obiusvly I get a javascript error if I load t
Hello,
> i'm using apache2.2 + php5.2 and cake_1.2.3.8166. When i try to acess
> localhost/cake_1.2.3.8166, folders and archives which are inside of
> the cake appear, and index,php is not shown. However, If a click on
> index.php, this page is shown correctly. Why isn't index.php called
> automa
that works fine! although i cant seem to constrain the number of
fields select either by contain or fields...
On Aug 1, 10:52 am, Martin Kirchgessner
wrote:
> Did you try to use the "recursive" param? I think you should call :
>
> $news->find('all', array("recursive" => 2));
>
> "recusive" defau
Does your User model have both password and username fields? If not
don't forget to set Auth's "fields" parameter.
Another problem may be the way your passwords are hashed before
they're saved to User. You should not use PHP's or MySQL's md5 or sha
functions, but $Auth->password instead (or, if
Did you try to use the "recursive" param? I think you should call :
$news->find('all', array("recursive" => 2));
"recusive" defaults to 1, meaning it will get data from news and its
associated models (organisations_user). That's why you don't have User
and Organisation. By setting it to 2 find w
25 matches
Mail list logo