yes i tried to read the book
and make a tutorial too
but i don't understand how to do what i want
thanks
On 22 Gen, 00:23, Sam Sherlock sam.sherl...@gmail.com wrote:
have you read the blog tutorial of the book it is available in various
languageshttp://book.cakephp.org/2.0/
- S
On 20
Ops, sorry for slow response. :(
So I did what you said and saw that the other is being loaded instead of
the correct php.ini. How do I change the path to php.ini will be loaded?
Thanks a lot!
2012/1/12 majna majna...@gmail.com
add to app/Config/bootstrap.php
phpinfo(1);
then run in
I will try this. However I get a new captcha every time. That is not
the issue. So the image is ok. But in the file i got a line saying
$_SESSION['captcha'] = value;
The issue is that I cannot access in any way the captcha session
variable from cakephp.
On Jan 21, 9:24 am, Daniel
I have enough you and your problems...use Recaptcha where all works fine !!!
http://cakephp.siotn.eu/2011/12/cakephp-2-recaptcha-plugin/
And stop coding with cakephp if you don't know to set this up to work !!
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/1/22 xparm...@yahoo.com
On Jan 22, 3:51 pm, xparm...@yahoo.com xparm...@yahoo.com wrote:
I will try this. However I get a new captcha every time. That is not
the issue. So the image is ok. But in the file i got a line saying
$_SESSION['captcha'] = value;
You should be using $this-Session to access session
I forgot to mention that on my database I have the following fields on
the users table:
id
username
password
email
active
role
created
So why don't I get these fields in $this-Auth-user ?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
OK, I found the answer. I was using the wrong code in my login
function:
if ($this-request-data) {
if ($this-Auth-login($this-request-data))
... should be
if ($this-request-is('post')) {
if ($this-Auth-login())
--
Our newest site for the community: CakePHP Video Tutorials
I'm making a follower system ala Twitter.
Here is my UsersController :
class UsersController extends AppController {
public $name = 'Users';
public $helpers = array('Html', 'Form', 'Paginator');
var $hasAndBelongsToMany = array(
'Followed' = array(
'className' = 'User',
Oh the irony..
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
Hi there,
I have been go through the research on how to change the pre-defined
index page.
The pre-defined index page means when you enter (http://localhost/
abc123) the Cake PHP configuration page will appear. But instead of
the configuration page, I would like to have my own designed page.
Create index.ctp in pages. Will auto replace index.
On 22 jan, 16:20, Keith Yeoh ysho...@gmail.com wrote:
Hi there,
I have been go through the research on how to change the pre-defined
index page.
The pre-defined index page means when you enter (http://localhost/
abc123) the Cake PHP
Sorry, it's home.ctp
On 22 jan, 17:39, J. contact.mysparet...@gmail.com wrote:
Create index.ctp in pages. Will auto replace index.
On 22 jan, 16:20, Keith Yeoh ysho...@gmail.com wrote:
Hi there,
I have been go through the research on how to change the pre-defined
index page.
hey guys.
are there any experiences made yet in this field?
does anyone operate a cake app behind a proxy (apache or otherwise)
I still experience problems with
a) HTTP_HOST
b) refer(r)er
which can either result from inadequate config settings or because
they might not be handled well from apache
why would you want to protect your application from yourself?
you are (that's my guess anyway) the developer of the app.
therefore there is no need to protect the app from you or itself.
you shouldn't be concerned about what the models or controllers can
fetch but
on what is presented to the user
Hi everyone,
I have used redirect a thousand times successfully. but this one is
weird.
This is my process. User wants to save his data and the system checks
if all necessary field are filled out. if so, save the data. if not,
give an JS-alert.
the whole thing works. the alert when data is
you are calling POST call via AJAX request, so, you can't use
$this-redirect() in controller
from controller method check if was ajax call, if it was, print code below
in controller:
meta http-equiv=refresh content=0;url=?php print
Router::url($yourUrlArray, true); ? /
and after print this, use
Hello,
I'm using the CakeDC search plugin.
How can I search with a Like query in two different fields in the
database using just one form field?
For instance, a user goes to the form, enters in their search term,
this term will be checked if there's a Like query match in both the
entry1 field
with my bugfixed and enhanced version you can:
https://github.com/dereuromark/search
but you should use an array structure then - like that:
'field'=array('Model1.entry1', 'Model1.entry2',
'Model2.entry2', ...)
On 22 Jan., 19:46, andrewperk andrewp...@gmail.com wrote:
Hello,
I'm using the
Thanks so much Euromark, just tried it and worked perfectly.
Andrew
On Jan 22, 10:51 am, euromark dereurom...@googlemail.com wrote:
with my bugfixed and enhanced version you
can:https://github.com/dereuromark/search
but you should use an array structure then - like that:
Well if it is an AJAX call, just do a redirect in the JS within the
response.
location.href = newUrl;
Or
location.reload(true);
To refresh the current page.
On Jan 22, 10:10 am, Tilen Majerle tilen.maje...@gmail.com wrote:
you are calling POST call via AJAX request, so, you can't use
Million thanks for the solution :) will keep it up to learn it and
just newly join this group.
On Jan 23, 12:40 am, J. contact.mysparet...@gmail.com wrote:
Sorry, it's home.ctp
On 22 jan, 17:39, J. contact.mysparet...@gmail.com wrote:
Create index.ctp in pages. Will auto replace
hi guys,
got a big problem.. want to deploy my 2.0.4 cake app on an IIS7 server
but it is not working as I thought it would.
Uploaded the application and inserted the web.config with the one from
the 1.3 cake cookbook.
It shows the initial page, but does not show any other pages,
additionally css
Hi,
How can I create a fixture for a HABTM table?
I have tried everything but my tests always say the table is missing.
Thanks,
Thiago
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help
Most probably you have trailing whitespace before of after the php tags in
your classes. Use the DebugKit whitespace shell to remove them. You may
also want to change the session settings in core.php, usually setting
'checkAgent' = false solves some issues.
--
Our newest site for the
You need this:
http://book.cakephp.org/2.0/en/installation/advanced-installation.html#url-rewrites-on-iis7-windows-hosts
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with
now i modified you function save in js with Miles's advice
Code in link below:
http://bin.cakephp.org/view/1265623686
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/1/22 Tomfox Wiranata tomfox.wiran...@gmail.com
first of all zhx to both of you
to be honest i have no clue if its post
Hi Jose,
yeah I tried that, but it won't work :/
the site is http://www.brainsnacks.de/
Source shows that its not redirecting corretly to the webroot sources
and to the included elements..
Anything else to configure maybe?
On 22 Jan., 22:40, José Lorenzo jose@gmail.com wrote:
You need
Dear all,
I have some problems with converting numbers (especialy digit
seperator) from a german comma seperated number into a number for the
database.
My controller has nothing special but this:
public $helpers = array('Html','Number', 'Form');
- referres to the NumberHelper in
I also spent an afternoon trying to make it work ... almost wrote a post
about it, now I see I should have written.
On Sun, Jan 22, 2012 at 10:16 PM, Suelen Goularte Carvalho
suelengcarva...@gmail.com wrote:
Try to import the rules, I did that and it worked, it will automatically
create the
One more thing, you must import all three. htaccess file that exist. The
root, root/app and root/app/webroot and order them in the web.config file
is important, I do not remember exactly what order, but basically the more
general rule up and down more specific.
On Sun, Jan 22, 2012 at 10:19 PM,
The CakePHP core team is proud to announce the immediate availability of
CakePHP 2.1.0 beta [1]. As noted in previous release, this version is fully
backwards compatible with 2.0.5, making it a breeze to update your apps to
start taking advantage of the many improvements that made into this
Hi Ivan,
Set your model associations using belongsTo, hasOne, etc and then use the
Containable behaviour.
The question I posted should help:
http://groups.google.com/group/cake-php/browse_thread/thread/4d412591e87408a/7ab27dd679d60605?lnk=gstq=trouble+linking+models#7ab27dd679d60605
Of note:
Dear all
I have some difficulties to set up a proper validates()-function in
the Controller. Everything in the function works fine, exept the
validates() in the if construct. Here is my UserController, in which I
have to check an email entry with my EmailAddress-Model:
[code]
..
33 matches
Mail list logo