Hi,I'm using Eclipse 3.2.0 + PHP plugin from Eclipse (not PHPEclipse)Local workspace setup is just like your number 1. I will have one cake lib for each project.Source control is using CVS. Currently no problem accessing, updating, or comitting.
BTW about test suites, any links on how to use it? It
On 10/31/06, Christian Winther <[EMAIL PROTECTED]> wrote:
> plugins/$name/$name_uninstall.phpfile for
> deactivating the plugin ( removing tables )
We have something very similar in cheesecake photoblog - check out 1.5
Beta 1 from http://cakeforge.org/projects/cheesecake/
> and then
I'm currently testing out a site on a server running MySQL 4.1, PHP
5.1.1 and IIS 6 and I'm having problems connecting to the database as I
always get the message:
"Your database configuration file is present.
Cake is not able to connect to the database."
No other errors show up either on that
try this:
$HTTP_RAW_POST_DATA = file_get_contents('php://input');
On Nov 9, 12:17 am, "zheka" <[EMAIL PROTECTED]> wrote:
> Hello
>
> I am converting a php script to a cake based one.
>
> The original script is getting input from xForm post via
> $HTTP_RAW_POST_DATA
> However the cake based scri
>Where "order" is an action in your controller where you can do
> something like:
>
> if (isset($_POST['items']))
> {
> $sortableitems = $_POST['items'];
>
> $i = 0;
> foreach ($sortableitems as $item)
> {
> $this->Use
Hello
I am converting a php script to a cake based one.
The original script is getting input from xForm post via
$HTTP_RAW_POST_DATA
However the cake based script does not see $HTTP_RAW_POST_DATA for
some reason even though it runs on the same server.
Why would this be happening? .
thank you
Still not very clear. Add a new field called sorted in the Menu table ?
right?
--~--~-~--~~~---~--~~
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 uns
Penfold wrote:
> I am currently working on a project that requires maximum flexiblity
> for user management so ACM is a no go ( i need users in multipul groups
> and groups in multipul groups)
Hmm, I couldn't get ACM to work, perhaps ver 1.0 will come with some
docs.
> i am willing to share wh
Dieter, that was an excellent article.
> it. But i'm talking more about things like user registration forms,
> password change forms, ...
I was also referring to stuff like registration forms and password
change forms. As you are in the process of making it "more generic",
please let me know if
Quite Strange...!!
It doesn't work
This is the first list
sortable ("firstlist",array()) ?
Last day was OK !!!
BUT now
Error: Sortable is not defined
Source File: http://localhost/ck/topics
Line: 131
Why It Happen ???
I do nothing about this page
Someone occur it before?
Again 1.2 IS NOT RELEASEDOn 11/8/06, nate <[EMAIL PROTECTED]> wrote:
The paginate() method of the controller is working, the helper is not.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access public*/
--~--~-~--~~--
The paginate() method of the controller is working, the helper is not.
--~--~-~--~~~---~--~~
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
1.2 has not been released.End of discussion-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access public*/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
...since 1.2.x.x. is sort of a moving target.
In the case of a bugs being found and fixed in 1.x.x.x after 1.2.x.x
branched, how are you handling porting those fixes to 1.2.x.x in light
of the fact that the pertinent code may have been refactored or
My bad. But here's a word of advice: don't create a database table
called 'controllers' and then build a model for it - it hoses
EVERYTHING, including the bake file. i was trying to do a help system
with the following tables: controllers, controller_help_articles,
help_articles so i could tie se
> So with Eclipse, I create a project
> (which creates the '.project' file), maybe bake or copy in my 'app'
> directory, check it into the repo, delete the whole lot and then check a wc
> out of the repo again. This seems like and awful waste to me. How do you do
> it?
If you're using subclipse
Hi again - it turns out that there may be more problems.
I created Models for a few new tables in the database and verified that
the files were in the models directory in C:\website\mango\app\, but
after I created Controllers for all of the same models, I checked the
controllers directory and the
That worked! Thanks very much.
On Nov 8, 7:32 pm, gwoo <[EMAIL PROTECTED]> wrote:
> > bake.php -appTry using -app with an existing application. Using -project
> > means
> build a new application directory.
--~--~-~--~~~---~--~~
You received this message becaus
It seems that your current directory of command prompt affects the bake.php.
Insted of:
C:\website\mango\cake\scripts>php bake.php -project testapp
Try:
C:\website\mango\cake>php c:\website\mango\cake\scripts\bake.php -app testapp
Shun Dozono
--~--~-~--~~~---~--~---
Hello,
It seems that your current directory of command prompt seems affect
the bake.php.
Insted of:
> C:\website\mango\cake\scripts>php bake.php -project testapp
Try:
> C:\website\mango\cake>php c:\website\mango\cake\scripts\bake.php -project
> testapp
Regards,
Shun Dozono
2006/11/9, james
> bake.php -app
Try using -app with an existing application. Using -project means
build a new application directory.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send
I've done as suggested here, but bake doesn't seem to like it when I
specify the app directory that I've been working with all along.
Here's how things go :
C:\website\mango\cake\scripts>php bake.php -project
C:\website\mango\app
___ __ _ _ ___ __ _ _ __ __ __ _ _ ___
||_
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Just curious? I'm having a bit of trouble, but I'm not sure if it's
because the code is just not ready, or if I'm doing something wrong.
Thanks,
Darian
- --
Darian Anthony Patrick <[EMAIL PROTECTED]>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.
Sorry if I wasn't clear on what I wanted...
$this->locked is defined so that I can use it in beforeFilter to check
if an action is supposed to be accessible by guests or admins. If
beforeFilter sees that $this->locked is true, then it will later check
if the admin session is created (which I have
@PhpNut
The code snippet you gave me didn't work for me. I searched around and
found this change ticket: https://trac.cakephp.org/changeset/3783/ .
>From the looks of the code, the 'requested' key is set to 1, not a
boolean. I changed my condition operator to == so that PHP would
attempt to cast
@PhpNut
Thanks for the quick reply. I tried several queries in the group and on
google looking for what I needed and couldn't find a relevant solution
(almost all results were about user authentication, othAuth,
rdSimpleAuth...). I suppose it helps if you know exactly what to search
for, but I ca
Already covered this in the group before...if($this->params['requested'] === true){//do your thing here}-- /*** @author Larry E. Masters* @var string $userName* @param string $realName
* @returns string aka PhpNut* @access public*/
--~--~-~--~~~---~--~~
You recei
I would like to protect a controller action from being directly
accessed directly by its URL. And no, I'm not talking about a user
authentication system. I have two controllers: Payments and Orders.
Payments is used first to save credit card information from the user,
then it redirects to the Orde
You should store your variable "lock" into the Session Object (ei :
Session->write(), Session->check or read ). When reading just check the
existence of the variable and it's value (in beforeFilter)...
On Nov 8, 11:14 pm, "cypher543" <[EMAIL PROTECTED]> wrote:
> I have a one-user blog, so I don't
I have a one-user blog, so I don't have a big fancy authentication
scheme. What I want to do is "lock" certain actions so that they are
only visible if my session is set. Here's what I did... (without the
session checks done)
In app_controller.php, I defined the beforeFilter() function:
locked)
There has been some talk on the list about the kinds of editors people use for cakePHP development. Some people have mentioned Eclipse (among others) for a good all round IDE. I personally have been using both 'kate' and 'Quanta' (built on top of kate) for my cakePHP development and while I have no
On Nov 8, 6:00 pm, "Synchro" <[EMAIL PROTECTED]> wrote:
> A web services page in the manual would go a long way.
A bit more careful reading of the config manual page revealed a couple
of errors in what I was thinking. Though admin actions like
/admin/thing/function get mapped to admin_function(),
That kinda works, but will that cause problems later on because the
CamelCase is not correct?
It's reporting: "Missing Model...No class found for the model
Salesanalysis...in file : app\models\salesanalysis.php".
I'm concerned that the model filename is "salesanalysis" instead of the
expected "s
Thanks for the links. I'd already tried one, but couldn't get it to
work. It seems that, no matter where I put the svnant files, ant can't
find them. Here's what I have:
I get this error:
BUILD FAILED
C:\web\projects\survey\trunk\build.xml:28: Reference c:
Hi guys!
Here is my database scheme: http://shakuro.com/db.jpg
There you can see that there are a lof of multiple associations. I've
been out of cake community for a while, but as far as I know cake has
some problems with multiple assosiations.
The question is: Will I be able to use Cake built-i
See if using findCount makes a difference.
--~--~-~--~~~---~--~~
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
> There is a article on bakery
> http://bakery.cakephp.org/articles/view/128 which is a very good
> starting point.
>
Actually i'm in the process of making the authentication system more
generic, and i'm also working on some simple stuff to be combined with
it. But i'm talking more about things l
I'm wondering if anyone has any idea as to the reason for this little
annoyance, as it's cropping up for me too (when I get a COUNT() in a
custom query within cake)? Though I don't recall it in previous builds
of cake and wonder if its due to something new?
-Ryan
Kevin Uni wrote:
> hi DJ Spark
Troy,
I checked the phpinfo() and there was no mod_rewrite. Do the .htaccess
files cause a problem if there is no mod_rewrite? AKAL should i delete
them?
Mike
Troy Schmidt wrote:
> Depends on what kind of host you have. Some of them that isn't enough
> and you have to also delete the .htacc
This works for me:
Controller: menus ,action sort()
if(isset($this->data['Menu']['sorted'])) {
$this->layout='ajax';
$sorted = $this->data['Menu']['sorted'];
$sorted = str_replace('sortable[]', "",$sorted);
On 11/8/06, hydra12 <[EMAIL PROTECTED]> wrote:
>
> I know this is off topic, but please bear with me. Enough people have
> asked questions about this in the past that someone might be
> interested.
>
> I'm using eclipse and svn for my development. I'm playing with ant,
> too. I'm trying to use
I know this is off topic, but please bear with me. Enough people have
asked questions about this in the past that someone might be
interested.
I'm using eclipse and svn for my development. I'm playing with ant,
too. I'm trying to use svnant to make my svn task, but I can't get it
to work. It
On 11/8/06, mozey <[EMAIL PROTECTED]> wrote:
>
> still not having any luck with this guys, any input?
>
>
You won't be able to use the built-in db model stuff if you have
constantly changing table names. That would require changes to the
model classes themselves, which is likely a topic way bey
Agreed, it is important to know this because it can affect your choice
over ACM. And save days and hours.
Thanks Penfold to remember this.
Penfold escreveu:
> I am currently working on a project that requires maximum flexiblity
> for user management so ACM is a no go ( i need users in multipul gr
still not having any luck with this guys, any input?
--~--~-~--~~~---~--~~
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,
That looks great, how it should be!
One thing I'm not clear on from an architectural point of view is to
use that it looks like my controllers have to inherit from the
Rpc5AppController and model, which implies to me that those controllers
become dedicated to rpc calls. I can't see how to prevent
Here you have more info about the parameters and other things..
http://wiki.script.aculo.us/scriptaculous/show/Sortable.create
Basically you have to do something like:
Item
Other Item
Where "1", "4" are (in this example) the ids of the items, and then add
the sortable javascript with the Ajax
On Nov 7, 4:10 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> First of all, are you using any XMLRPC or XML helpers? I've never
> used them so that could be causing the problem
No.
> Secondly, the correct call to the action you specified above should be:
>
> /things/xmlrpc_doSomething
>
> B
Thankyou, for some reason I'd interpreted the request action as a way to
access another view and not just the action of a controller, thanks for
the clarification.
Grant
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Bennett
Sent: Wednesday,
> Does someone have an example of 1 controller calling another?
you'll be wanting 'requestAction' sir.
Bascially, you call the full url from a controller or view, and the
calls the method and returns the result, eg:
// tests_controller
function getData ()
{
return $this->Test->findAll ();
}
Does someone have an example of 1 controller calling another?
I have a controller that gets meta data keys from a database, this is a
utility funciton that is used by other controllers, I'm was under the
assumption that the $uses variable is just for including additional
models in your controller
I didn't see ACM when I was looking through cakeForge. I will
definitely check it out.
Thanks
--~--~-~--~~~---~--~~
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@googleg
I am currently working on a project that requires maximum flexiblity
for user management so ACM is a no go ( i need users in multipul groups
and groups in multipul groups)
i am willing to share what i have done so far, othauth is not the best
place to start as very complicated and no documentatio
Aarrgh that was easy. I was looking all over the place but not there.
Cheers
Phil
On Nov 8, 1:18 pm, "Bert Van den Brande" <[EMAIL PROTECTED]> wrote:
> in core.php put the debug level to 1 or 2 ?
>
> On 11/8/06, floepi <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > i looked through various disc
i have some now:
define('VALID_TELEPHONE', '/^[\(\+0][\/\(\)0-9 \-]+$/');
define('VALID_TELEPHONE_OR_EMPTY', '/^$|^[\(\+0][\/\(\)0-9 \-]+$/');
define('VALID_EMAIL_OR_EMPTY',
'/^$|\\A(?:^([a-z0-9][a-z0-9_\\-\\.\\+]*)@([a-z0-9][a-z0-9\\.\\-]{0,63}\\.(com|org|net|biz|info|name|net|pro|aero|coop|museu
I got it! Answer by myself
1. config the routes.php
add $Route->connect('/*/add/*', array('controller' => 'users',
'action'=> 'add'));
2. add new function in the users_controller.php
function add($username)
{
$user = $this->User->findByUsername($username);
$this->set('user
in core.php put the debug level to 1 or 2 ?
On 11/8/06, floepi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i looked through various discussions about the cake sql debugging but
> could not really work out how to do this yet. Can someone please tell
> me "step by step" what i need to do so i can see th
Hi,
i looked through various discussions about the cake sql debugging but
could not really work out how to do this yet. Can someone please tell
me "step by step" what i need to do so i can see the SQL statement and
the error. I try to save something and Cake does not tell me anything
why it does
I have the same problem that you.
I opted to use ACM because othAuth has no documentation, examples,
tutorials for you learn it.
ACM is very easy to use and for my needs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
I recommend you work through
http://manual.cakephp.org/appendix/blog_tutorial , a lot of these basic
questions will be answered for you.
If you have a function add() in your "eric" controller, you can go to
localhost/eric/add . In that function look for the existance of
$this->data - whether a f
So is your caching set for the view that is calling the img src or the
view that is called by img src?
Also, since you are getting the results out of database shouldn't you
be using query caching to achieve your result?
I am no view caching expert.
On Nov 7, 12:39 pm, "Kesher" <[EMAIL PROTECTED
Depends on what kind of host you have. Some of them that isn't enough
and you have to also delete the .htaccess files (since it reads them
just doesn't honor). Also, I have one (netfirms) where I have to
explicitly tell it the BASE_URL since it runs PHP in some weird CGI
mode that doesn't report
Hi,
I know how to do like localhost/eric.
But How Can I make fuction add( ) works for localhost/eric/add.
Cause I should pass the param to the add function, i think
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi all, when I'm scaffolding, the information from belongsTo is
populated and a select box is provided as well,
The information is selected with the following SQL statement with
scaffolding
SELECT `RawMaterialsCategory`.`idxRawMaterialsCategory`,
`RawMaterialsCategory`.`Code`, `RawMaterialsCateg
Do I need to customize my Inflections.php
> file to make this work or is this a bug that should be addressed? I'm
> using version 1.1.10.3825.
>
> Thanks
I got the same result. The following in /app/config/inflections.php
solved it:
$irregularPlural = array('salesanalysis' => 'salesanalyses');
I
65 matches
Mail list logo