I want the system to display :
"You are not authorized to access that location."
But not
"You are not authorized to access that location.
1"
Please help.
On Apr 11, 12:25 am, brian wrote:
> Remove the echo. flash() does that itself.
>
> On Fri, Apr 10, 2009 at 11:01 AM, gimmebucks wrote:
>
>
Can you upload generated PDF to some file-sharing hosting server?
Not all have unix to use this script.
On Apr 11, 8:47 pm, AD7six wrote:
> On Apr 7, 1:42 pm, Dardo Sordi Bogado wrote:
>
> > > George if Dardo doesnt get back to you let me know and I can forward
> > > the script to you, I jus
Perfect!
Thanks, just what I needed! Works perfect now.
Dave
-Original Message-
From: Miles J [mailto:mileswjohn...@gmail.com]
Sent: April-11-09 11:13 PM
To: CakePHP
Subject: Re: Containable
Remove the conditions, fields, and order. You only need to put those if you
are modifying/fil
Remove the conditions, fields, and order. You only need to put those
if you are modifying/filtering the data in some way.
No data is being returned to the user, because you set fields to empty.
--~--~-~--~~~---~--~~
You received this message because you are subscri
Bookmark Model:
var $belongsTo = array(
'User' =>
array('className' => 'User',
'foreignKey' => 'user_id',
'conditions' => '',
'fields' => '',
'order' => ''),
I don't think you will see the data from Authorize in this->data I
think you will have to look at the raw data. I can look at it on
Monday but my wife has named my laptop for Easter weekend.
Sam d
===
Sent from my AT&T Rotary Phone
http://blog.samdevore.com
On Apr 11, 2009, at 10:34 AM, "
So a bookmark has many posts correct? What does that association look
like in your model.
--~--~-~--~~~---~--~~
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
Im pretty sure the magic findBy methods do not do contains or
recursions. You will have to do it manually.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php
Thanks!
On 11 tra, 21:59, Miles J wrote:
> Honestly, its all up to you. But personally I prefer doing stand alone
> controllers then using pages. Pages is only useful for like an about
> us, bio, etc, type page.
--~--~-~--~~~---~--~~
You received this message beca
Can you use findBy with contain? I keep getting an error saying:
Model "User" is not associated with model "User"
I am trying to clean up my queries and I have:
$user = $this->User->findBySlug($slug);
which returns a lot of info from a lot of tables which is certainly not
needed since all I ne
Is there anyway to not display the header?:
Welcome to CakePHP v1.2.2.8120 Console
---
App : app
Path: /path/to/app
---
--~--~-~--~~~---~--~~
Yo
Thank you!
On Apr 10, 8:42 pm, brian wrote:
> $this->out(
> sprintf(
> 'foo is %s',
> $bar
> )
> );
>
> On Fri, Apr 10, 2009 at 10:27 PM, mattalexx wrote:
>
> > Sometimes my shell method will run for a long time. I'd like to be
> > able to output
I have the tables: Users, Groups, and GroupsUsers. Users belongToMany
Groups. I'm using ACL to manage Users (aros) having crud access to
Groups (acos) and individual Users (acos).
For example User.1 belongs to Group.A and Group.B and has create/read/
update to Group.A. User.2 belongs to Group.A.
I am trying to figure my way thru the contain behaviour with limited
success.
I have a Bookmark which belongs to a User and also the Post. Bookmark table
is id, user_id, post_id
I want to get these from a query - the bookmarks based on the user_id and
the title and description of the Post fro
Yeah this one took me a while to figure out also:
http://www.milesj.me/blog/read/24/pre_populating-form-values
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake
Aite ill try that and see if it works.
--~--~-~--~~~---~--~~
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 from this group, send email to
cak
Your cake installation is not where it should be, or you changed the
CAKE_CORE_INCLUDE_PATH constant.
So basically what the error says.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this
Honestly, its all up to you. But personally I prefer doing stand alone
controllers then using pages. Pages is only useful for like an about
us, bio, etc, type page.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cak
I would just change what you have to be a little bit less confusing.
Change from
$thisModel = $modelName;
$modelName = $this->User->$model_name->find('list', array('fields' =>
'name', 'order' => 'name ASC'));
$this->set($thisModel, $modelName);
To something like
$result= $this->User->$model_name-
Hello!
I'm starting out with Cake and I just ran into a problem, or better
say a dilemma.
I have several pages on my website that work like static pages, but
some of the content is stored in a database because it has to change
depending on the language the user chooses (and the content is too bi
Hi Joe,
During my experimentations I did come up with something similar, but
one of the problems is how to set the conditions to work on the Genre
ID.
So, I have a book that has two genre, "Mystery" (id=5) and "Short
Story" (id=20) and if I only try to search with say, "Mystery";
$id = 5;
$this
I have a problem when I try to select distinct fields in an associated
model with find. The models "Address" und "Expertise" have a HABTM
relation.
I have the following code in my controller. (There is no table named
mitglieder).
Expertise->find('list');
$this->set('fachgebiete',
Hey all,
installed Cake on an ipower.com server. File Structure is
/
public_html/
_Dev
_Cake_1_2
___app
___cake
___ ...
___vendors
I get the following error when loading t
My User model has $hasMany = array(
'Bookmark'
And my Post model has $hasMany = array(
'Bookmark'
I have a side module on the page where users view posts tht lists all the
users bookmarks for easy access and "save this post" link which saves the
post_id and the u
Has anyone seen any work on using CakePHP to generate applications to
interact with SugarCRM via Soap calls?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-p
Hi Dave.
If your Post and User models both have a HABTM relationship to
Bookmark, then you can use the ** "unique" => true ** parameter in the
association.
This means that if it does find a duplicate record, it will override
it.
I hope this helps.
On Apr 11, 6:11 pm, "Dave Maharaj :: WidePixel
Samuel,
Sorry to bother you again. Now I am having problems with authorize.net
"relay response":
I am using a testing account, so all my transactions go to
https://test.authorize.net...
I had my form posted to authorize.net
I am shown their hosted payment form.
My payment is processed right (
You've currently got your similar() function in your
genres_controller, whereas the primary model for the query is the Book
model (as it's finding related *books*, not genres).
I believe the following would be a more scalable approach.
Place your similar() function into your Book model. (So it w
I am trying to query a table to determine if the record exists as I do not
want duplicates but not sure if this is correct.
$results = $this->find('first', array('conditions' =>
array('Bookmark.user_id' => $user_id, 'Bookmark.post_id' => $post_id)));
debug($results);
so if the user_id and the p
In my books view.ctp, I want to have a list of 5 books that are
related via the genres data, which has a HABTM relationship. Although
I can do this by placing a function similar() in the
genres_controller, I have to call it from the view with requestAction.
// genres_controller.php
function sim
i guess the theoretical limit on a 32bit system is 4,294,967,296
(2^32), but my first question would be do you need unlimited groups,
or unlimited roles? roles being the classification of user where
actual ACL permissions are attached (role "a" can access the
users::add method, but role "b" is no
I'm guessing you still have all the old directory information cached.
go to app/tmp/ and remove all the files in all the subfolders but
leave the subfolders intact.
On Apr 11, 12:58 pm, AD7six wrote:
> On Apr 11, 12:36 pm, CapeTownGuy wrote:
>
> > Hi,
>
> > I installed an application in the ro
> Indeed you can't distribute any copies of the book's contents
> (regarding other comments in this thread) which prevents (~immediately
> outdated) copies of the book springing up and being found by the
> nubies.
...as the file on my is already outdated I should take your comments
as an indicati
Warning: include(cake/bootstrap.php) [function.include]: failed to
open stream: No such file or directory in /home2/qbanglac/public_html/
girls/index.php on line 80
Warning: include() [function.include]: Failed opening 'cake/
bootstrap.php' for inclusion (include_path='/home2/qbanglac/
public_ht
On Sat, Apr 11, 2009 at 9:54 AM, Dave Maharaj :: WidePixels.com
wrote:
>
> Reading thru the cookbook on cookies and sessions but I cannot get it to
> work. I have the toolbar installed so I can see the data easier. I have this
> in my app_controller:
>
> var $components = array('Auth', 'Acl', 'Re
I think that should be:
0 0 * * * php -q /path/to/...
On Sat, Apr 11, 2009 at 5:44 AM, Miles J wrote:
>
> So I have written a shell script (named Cron) that works perfectly in
> console. When I set it as a cron tab, it continually shows the content
> below and doesnt run, any ideas why?
>
> Thi
Thanks a lot, it works perfect !
On Apr 11, 12:39 pm, Miles J wrote:
> You would have to remove the array_map, and do your own loop.
>
> $clean = array();
> foreach ($this->data[Inflector::camelize($model)] as $data) {
> $clean[] = (is_array($data)) ? implode(',', $data) : urlencode
> ($
Reading thru the cookbook on cookies and sessions but I cannot get it to
work. I have the toolbar installed so I can see the data easier. I have this
in my app_controller:
var $components = array('Auth', 'Acl', 'RequestHandler', 'Cookie',
'DebugKit.Toolbar');
var $helpers = array('Html', '
AD, thats a cool idea.
Dardo, if you decide not to do it, let me know, as I'd like to give it
a bash (with your permission, as I'd be using your script as a
starting point)
I'd still like to get to a point where one could setup an offline web
version of the manual as it appears online, I just lo
On Apr 11, 11:37 am, Paco Gomez wrote:
> Hello,
>
> I'd like automatic filling in a form field, for example a textbox with
> the data from the database. Is that possible?
>
> For example, how I have to name my form field and name my varabel? :
Revisit your question after doing the blog tutoria
On Apr 11, 12:36 pm, CapeTownGuy wrote:
> Hi,
>
> I installed an application in the root webfolder and then decided to
> move it to a subfolder from the root, however the application broke
> thereafter.
Define broke
> Can somebody explain to me how to change the settings in
> the core.php o
On Apr 9, 5:13 pm, Toby wrote:
> Hi there,
>
> I have 4 table that relate to this problem...
> - Products
> - Types
> - Sizes
> - StockItems
>
> I have set CakePHP so that each product has a Type.
> I am now sorting out the StockItems controller/views. Each StockItem
> will relate to a single
On Apr 10, 2:03 pm, kaushik wrote:
> I have a search form for Blog with pagination. The form is like below.
>
> id="BlogSearchForm" method="post" action="/blogs/search">
>
>
>
> id="keywords" />
> id="category" />
> value="Search" />
>
>
> I want to set so that the url after hitting sea
On Apr 7, 1:42 pm, Dardo Sordi Bogado wrote:
> > George if Dardo doesnt get back to you let me know and I can forward
> > the script to you, I just hope he's ok with me forwarding his work to
> > others.
>
> I've sent the code to Mike in a private email, but I'm ok with
> whatever you do to tha
On Apr 10, 4:41 pm, jsundquist wrote:
> What I am looking to do is kind of complex and I'm not sure the best
> way to go about doing it. I have two tables that get joined twice two
> each other. Going the same way each time.
>
> table_1 --> table_1_table_2 --> table_2
>
> and
>
> table_1 --> ta
On Apr 10, 8:50 pm, djXternal wrote:
> I have finally managed to get my ACL working, realized I was having
> issues using UUID's, now the super user can access everything fine
> when logged in and logout. But users with privledges lesser than that
> user, who do now have access to the 'Users'
Thanks Paco!
This would help, but unfortunately I use another javascript-library
which won´t work together with prototype.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send
On Apr 10, 5:26 pm, Anibigi wrote:
> Hi,
>
> I'm a newbie to cakePHP.
> I want a paginator class that would work well with both database and
> non database record set.
The core pagination functionality does that - since it only defines
the parameters you'd pass to your model and doesn't care h
On Apr 11, 8:28 am, nc wrote:
> Anyone?
>
> On Apr 9, 8:51 pm, nc wrote:
>
> > I have a Search controller that handles search-related tasks in my
> > project and one of the requirements is that given a query (let's say
> > $query) it should search for $query in table a (model A), table b
> > (
Hi,
I installed an application in the root webfolder and then decided to
move it to a subfolder from the root, however the application broke
thereafter. Can somebody explain to me how to change the settings in
the core.php or where applicable to get the app to work again.
Thanks.
--~--~---
Hello,
I'd like automatic filling in a form field, for example a textbox with
the data from the database. Is that possible?
For example, how I have to name my form field and name my varabel? :
/view/example.ctp
form->input('data');
/controller/some_example.php
function example()
{
this->set(
I don't know if I response your question, but I use this:
http://tetlaw.id.au/view/javascript/really-easy-field-validation
On 11 abr, 00:25, GetIT wrote:
> Hello,
>
> I want to validate dynamic fields.
>
> Normally validation is done by defining rules for a table field.
> For example:
>
> var $
So I have written a shell script (named Cron) that works perfectly in
console. When I set it as a cron tab, it continually shows the content
below and doesnt run, any ideas why?
This is my cron: 0 0 * * * php /path/to/my/cake/console/cake cron
Error:
You would have to remove the array_map, and do your own loop.
$clean = array();
foreach ($this->data[Inflector::camelize($model)] as $data) {
$clean[] = (is_array($data)) ? implode(',', $data) : urlencode
($data);
}
--~--~-~--~~~---~--~~
You received this m
54 matches
Mail list logo