maybe http://some_other_domain.com/specs
I'm still working on this, actually. My .htaccess keeps breaking. But
the reason I posted here is to make sure that there's no way other
than .htaccess to accomplish this task.
On Nov 10, 12:56 pm, cricket wrote:
> On Wed, Nov 10, 2010 at 10:15 AM, piou
found what i was looking for, guess I just had to add this condition,
thanks to this post
http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/
if (isset($this->params['admin'])) {
$this->Auth->deny(‘*’);
}
else {
$this->Auth->allow(‘*’);
}
Is there a si
I hadn't tried to use admin routes in cakephp yet. When i first read
about I believed that I would get through it quickly but no
I cant figure out a way to let all my actions, without the admin
prefix, be accessed without a user logged in, authenticated by the
Auth component.
I already added
a few things
var $uses = array('User', 'Drugs');
i guess the drugs are related to users?
var $uses = array('User');
might be just enough then
you mix 1.3 helper syntax and old syntax
$this->Auth->allow('*', 'add');
probably was meant to be
$this->Auth->allow('*'); ^^
i would not change the secu
For anyone interested, I'm documenting my site development to both
keep track of what I'm doing as well as help others walk through the
steps from start to finish of site creation in CakePHP.
I've only just begun and won't have too much time to work on it since
I work full time and go to school fu
Can you be more specific?
It does use ActiveRecord and some Observer pattern.
On Nov 10, 7:56 am, dr43058 wrote:
> What design pattern does CakePHP use in the data access portion of the
> MODEL?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP relat
What design pattern does CakePHP use in the data access portion of the
MODEL?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to th
The constant is an email address and may be used in other parts of the
application so I'll keep it in bootstrap, other things would be best as
default values.
On 10 November 2010 17:54, cricket wrote:
> On Wed, Nov 10, 2010 at 4:42 AM, Stephen
> wrote:
> > Thanks for the advice cricket.
> >
> >
I think we found out what was wrong now. It seems like the way of
handling database schemas in cakephp 1.3 was quite different than in
1.1. We're having several schemas in our database.
Thanks for you taking time with my problem!
On 10 Nov, 11:25, MissYeh wrote:
> What is/are the error(s)?
>
> Th
this sounds as though it might be as simple as getting one site to read the
other sites rss feed
rss feeds are a snap in cake
http://book.cakephp.org/view/483/Creating-an-RSS-feed-with-the-RssHelper
http://kurinchilamp.kurinchilion.com/2009/06/cakephp-parsing-rss-feed-in-simple-steps.html
but if
On Wed, Nov 10, 2010 at 10:15 AM, piousbox wrote:
> That's one of the mistakes I made, yes.
>
> I figured it out and instead of a line like this:
>
> Redirect /specs http://domain.com/specs
>
> I now have this:
>
> RewriteRule ^specs$ http://domain.com/specs [R=301,L]
That rule won't change anyth
On Wed, Nov 10, 2010 at 4:42 AM, Stephen wrote:
> Thanks for the advice cricket.
>
> I decided to set up some default settings in bootstrap, achieved this using
> array_merge.
>
> function _someFunction($options=array()) {
> $defaults=array('someKey' => Configure::read('SomeKey'), ...);
>
Just wanted some idea's on how you would build an API for your
application in Cake?
An example of what I'm trying to achieve:
Team A logs on - adds their players, what they scored and how on their
site.
Team B logs on and does the same.
Both sites connect to each other and show the relevant scor
On Nov 10, 5:01 pm, psybear83 wrote:
> High everybody
>
> I wonder whether there's a way to disable MPTT in the ActsAs Tree
> behavior? I like modifying my data manually in the database, and so
> MPTT is just something that complicates stuff...
>
> Thanks for any hints
just run recover when you
High everybody
I wonder whether there's a way to disable MPTT in the ActsAs Tree
behavior? I like modifying my data manually in the database, and so
MPTT is just something that complicates stuff...
Thanks for any hints
Josh
Check out the new CakePHP Questions site http://cakeqs.org and help othe
That's one of the mistakes I made, yes.
I figured it out and instead of a line like this:
Redirect /specs http://domain.com/specs
I now have this:
RewriteRule ^specs$ http://domain.com/specs [R=301,L]
thanks for your help,
-Victor
On Nov 9, 6:28 pm, cricket wrote:
> On Tue, Nov 9, 2010 at 2
No containable behavior. In investigating it further I'm tracing the
first problem (line 193) to a lack of a result for
$this->params($model) on line 192 of CORE/cake/libs/view/helpers/
paginator.php
I debug'd $this->params and got this:
Array
(
[controller] => users
[action] => index
On Nov 10, 2:42 pm, Shaz wrote:
> I've only just gotten started with TDD - don't think many folks on
> here use the tests
You mean specifically the web testing interface I think. The thought
of developers generally not using any form of testing at all is just
scary.
> , but I do know exactly w
Basically whats easier for you - can't think of any "standards" for
pagination. Keep in mind that you may want to expand on it later on
(add more conditions, fetch more data etc) so keep it flexible.
On Nov 7, 5:12 pm, "Dave Maharaj" wrote:
> Not sure if I have been looking at this all wrong. But
I've only just gotten started with TDD - don't think many folks on
here use the tests, but I do know exactly what you mean. I haven't
come across anything better - it might be a case of having to improve
it ourselves...
On Nov 9, 1:16 pm, psybear83 wrote:
> Hi all
>
> CakePHP's web interface is n
Are you using any containable behavior? Or is the data being passed
along correctly when using $this->Paginate() - the main error that
jumps out me is: Argument #2 is not an array.
On Nov 9, 6:43 pm, "J. Argyl Plath" wrote:
> My User model belongsTo Department. When looking at a view of Users
> I
and if you didnt modify the core.php too much
this could work as well:
http://groups.google.com/group/cake-php/browse_thread/thread/d0654224e9ed942a/0da0bb6b97b119a1
"I'm not entirely understanding your question, but to use the Cake
session in other PHP scripts, the only issue I've found is settin
you need sth like this to make it work:
http://bakery.cakephp.org/articles/brightball/2009/02/18/using-cake-sessions-outside-of-cake
On 10 Nov., 12:06, "marco.rizze...@gmail.com"
wrote:
> Hi , I have a curiosity.
> If I have a php script inside the Cake webroot and in this script I
> try to do pr
What is/are the error(s)?
The find query should work fine. I am afraid the problem lies
somewhere else.
Though I haven't worked with PostgreSQL so maybe I am missing
something.
Can you do an simple query like:
debug($this->Publication->find('all'));
What about all other queries on your site? Do
Hi , I have a curiosity.
If I have a php script inside the Cake webroot and in this script I
try to do print_r($_SESSION); I can't see the Cake session
Instead if I inlude in this php script the core file of Cake session
and I do a CakeSession->start then with print_r($_SESSION) I can see
the Cake
Thanks for the advice cricket.
I decided to set up some default settings in bootstrap, achieved this using
array_merge.
function _someFunction($options=array()) {
$defaults=array('someKey' => Configure::read('SomeKey'), ...);
$options = array_merge($defaults, $options);
...
}
I figur
It's not really a CakePHP problem, but your webserver configuration
and/or dns.
Configuration depends on type of your hosting (shared vs. private/
VPS).
On shared hosting you should be able to point subdomain to different
directory than your main cakephp app. Most shared hosting providres
have FA
*puts his head in a bucket and whispers some sweet words*
I've missed this in the cakebook, but that will also be my fault I
guess.. I don't know why I hadn't just tried this first!
Jeremy, thanks for your splendid advice - it works.
Regards,
Johey
On 9 nov, 20:17, Jeremy Burns | Class Outfit
28 matches
Mail list logo