Thanks for the input. Looks like using *php -c* is the way to go however
i'll have to look into things a bit further. It seems as though there is an
issue on the server side that is keeping the script from executing.
On Saturday, November 22, 2014 8:09:47 PM UTC-5, Andras Kende wrote:
>
> This
;
includefastcgi_params;
}
}
HTH
On Sunday, October 26, 2014 3:09:07 AM UTC-4, CrotchFrog wrote:
>
> When you say "i have a redirection to my default login action
> *my_ip/my_cakephp_project/login* with an* 404 error*" ... my first
> impression would be th
When you say "i have a redirection to my default login action
*my_ip/my_cakephp_project/login* with an* 404 error*" ... my first
impression would be that your app is working but you are being denied
(redirected) by the auth component. Looking at your config I don't think
this is the case and o
I have multiple servers all running nginx and serving up Cake apps with no
issues. The "official CakePHP config" from the book does in fact work
because I'm currently using it in several locations. I do have configs that
are quite different than the book but they are beyond the scope if simply
I'm assuming you tried the configuration from the book ?
http://book.cakephp.org/2.0/en/installation/url-rewriting.html#pretty-urls-on-nginx
With a bit of tweaking to match your nginx config you should have no issues.
On Tuesday, October 21, 2014 3:09:57 PM UTC-4, Saif Turki wrote:
>
> hi,
> i
In 2.5.5 when setting a flash message from a controller and echoing in a
view, directly echoing $message will display the set message whereas
$this->Session->read('Message.flash.message'); will return null. Debugging
$_SESSION indicates that the session is properly loaded however
$_SESSION['Me
Every so often I find it necessary to overwrite certain styles or implement
styles or js functionality specific to certain pages in my app. For some
projects my app application-wide stylesheets and js can get really big
really fast and I find it more manageable to break them down into smaller
f
Set up your paginate just as you would a normal search using the logged in
users 'company_id' as the search criteria.
$this->paginate = array(
'conditions' => array(
'User.company_id' => $this->Auth->user('company_id')));
$this->set('users', $this->Paginator->paginate());
I believe
Using Cake 2.4.3 on Ubuntu server 12.04 LTS
A new unexpected behavior started recently in one of my projects ... when I
run 'cake bake' in the directory instead of the normal console output it
displays what seems to be the contents of my default.ctp or possibly
executing index.php. 'cake bake'
- MySQL
- PostgreSQL
- Microsoft SQL Server
- SQLite
On Wednesday, October 30, 2013 2:59:06 AM UTC-4, karthik...@gmail.com wrote:
>
> what are the drawbacks in cakephp?
> list out the supported databases?
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twi
sername
which seems just fine from all outward appearances, the only problem is
that instead of sorting the data as expected I'm greeted with the
all-too-familiar error *UserManagerController *could not be found.
*
*
On Friday, October 25, 2013 10:43:11 PM UTC-4, CrotchFrog wrote:
>
&g
I've noticed recently some strange behavior when it comes to naming
conventions and Plugins.
For example if I create a link somewhere within a plugin ie.
*$this->Html->link('Some
Link', array('controller' => 'controller', 'action' => 'action')); *
Following the link would land you on the page
different
controller that are behaving the same way. Not sure if it's related to
cache or sessions or perhaps a permissions issue of some sort but it's
becoming increasingly more difficult to work around it. Any ideas are
greatly appreciated.
On Tuesday, October 22, 2013 4:41:38 PM UTC
le *in any of the article views. Could
changing from 'News' to 'Articles' have caused the issue somehow? I'm not
quite sure where to start looking for the cause of the problem.
On Tuesday, October 22, 2013 1:54:34 PM UTC-4, CrotchFrog wrote:
>
> Problem solved, I
If I remember correctly Form->input is wrapped in a div. You can try
styling the div through the input options array such as 'div' => 'CssClass'
or remove the div entirely if it helps the cause, 'div' => false. You can
change from a div to something like span using 'wrap' => 'span'. Use
before/
generally
the case :)
On Monday, October 21, 2013 1:26:38 PM UTC-4, CrotchFrog wrote:
>
> I ran into an issue trying to save a datetime field and I haven't been
> able to figure out why it's not saving (not failing).
> Database set up is Ubuntu Server 12.04 LTS w/ Perco
I can't understand why you would want to join the two and how you feel it
would "simplify" your app. Doing so would be really bad form and completely
defeats the purpose of the MVC architecture. If you're working with static
views you could simply use the 'Pages' controller to serve your views.
I ran into an issue trying to save a datetime field and I haven't been able
to figure out why it's not saving (not failing).
Database set up is Ubuntu Server 12.04 LTS w/ Percona Server 5.6 -- I'm
using Cake 2.4.1
//table set up
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`id` int(11)
You would use GD library with Cake just as you would any other PHP
application. Run phpinfo() to see if GD support is enabled. If it is you're
good to go and there's nothing more to do, if not you'll need to download
and install it to your PHP/Apache server environment. I believe on Windows
sys
Would it be considered bad practice to have two identical controller names?
For example I was wondering about having a 'UsersController' to keep my
logic separate from 'UsersController' in one of my plugins, or would it be
best to just name one or the other differently? I can foresee one or two
If it helps I can tell you how I do it using the Uploader plugin.
In the model using Uploader create a function to generate the new name for
you.
public function generateFilename(){
return md5(rand(, ));
}
In the model using the Uploader attachment behavior attac
Cake 2.41
http://bin.cakephp.org/saved/108632
I'm running into problems trying to send email from plugin.
When debug is set to 'Zero' it triggers error : "Error: An internal error
has occurred."
When debug set to '2' it throws error: "Error: Call to a member function
subject() on a non-objec
figuration.
On Sunday, May 5, 2013 4:29:50 AM UTC-4, CrotchFrog wrote:
> I've been running Cake on Ubuntu Server 12.04 for quite some time now and
> never a problem. I don't necessarily have a problem with CakePHP itself,
> but more than likely something changed on my system an
Pablito was correct, there was a conflict in my code. I had a custom helper
to handle ckeditor and it was causing the conflict.
On Monday, March 11, 2013 7:56:19 PM UTC-4, cricket wrote:
> Define "Auth Component does not work". If Auth is allowing access then
> what else do you need? Could thi
an come up with. The
biggest mystery to me now is why did the error start "all of the sudden"
and why for some users and not others.
On Wednesday, February 27, 2013 1:45:29 PM UTC-5, CrotchFrog wrote:
> (Cake 2.2.5) I recently started getting an error that reads:
> Warning (2): I
ut my setup
does not work the exactly the same. Have you used this plugin?
On Sunday, February 24, 2013 1:37:03 PM UTC-5, Robert Winkky wrote:
>
> Have you checked out
> http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0 ?
>
> On Sunday, February 24, 2013 11:02:37 AM UTC
I'm using Miles J Uploader plugin and Cake 2.2.2. I've configured the
plugin in my model as $actsAs => Uploader.attachment.
What I'm having problems with is that I have a custom function in the
bootstrap to save the file with a unique filename and that works ok
but its saves the record in the da
My understanding is that you can have a controller without a model by
declaring an empty $uses array in your controller.
public $uses = array();
If the page is static you can also use the 'Pages' controller and create
your view in /View/Pages (no model or controller method required).
That page
in your users controller login is your setFlash set to 'working' ??
On Saturday, April 14, 2012 6:37:30 AM UTC-4, rossjha wrote:
>
> Hi,
>
> I'm trying to create a user controller test case. I'm using Auth/ACL and
> i'm having problems with mock objects. With the test below, i get the
> follo
Sorry, I just realized it was the PostsController and not the Post Model
that was not being found. You sure you have the PostsController.php and
it's not misspelled or anything like that?
On Wednesday, April 11, 2012 4:27:52 AM UTC-4, CrotchFrog wrote:
>
> No, there is no need t
folder named empty .It does not contain
> any text or code in it. Shall i delete it ,
>
> On Wed, Apr 11, 2012 at 1:38 PM, CrotchFrog wrote:
>
>> Delete the contents of the Model folder.
>>
>>
>> On Wednesday, April 11, 2012 3:56:24 AM UTC-4, masoodi wrote:
>
Delete the contents of the Model folder.
On Wednesday, April 11, 2012 3:56:24 AM UTC-4, masoodi wrote:
>
> There are three folders in it models persistant views which one to delete
>
> On Wed, Apr 11, 2012 at 10:59 AM, CrotchFrog wrote:
>
>> Try to empty the cache and see
Try to empty the cache and see if it helps.
/app/tmp/cache/
On Sunday, April 8, 2012 8:02:47 AM UTC-4, masoodi wrote:
>
> Dear friends ,
>
>I am new to cake . I have installed it .Now after installation what
> shall be our first action.i mean to say what have we to do after
> installati
localhost PHP v 5.3.8 but not on remote server
PHP v 5.2.17.
Is there a possibility this issue is not completely resolved, or is it
merely coincidence I'm having an identical problem?
- ED
On Tuesday, April 10, 2012 12:52:26 PM UTC-4, CrotchFrog wrote:
>
> Any idea what would
I would think to just put it in an "if" construct and execute the statement
if the expression evaluates to true, no?
function mypage($id = null) {
if (empty($id)){
$id = $this->Post->find('first', array('order' => array('Post.id
DESC')));
}
$this->Post->recursive = 0;
I have to agree with Mike, are you sure it's making it that far into the
code and have you tried testing the redirect on it's own?
Alter your 'if' statement to alert in the case the condition (send email)
fails.
if ($this->Email->send()){
$this->redirect('/sellers/message');
} else {
Did it make a difference for you or are you still having problems with the
redirect?
The difference would be in naming conventions
http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html
Sticking with conventions, 'seller' in your redirect should be plural
'sellers' to referen
try:: $this->redirect('/sellers/message');
On Friday, March 30, 2012 4:42:47 AM UTC-4, LITTO CHACKO wrote:
>
> hai guys, i have to met with other problem.. the problem is that whwn
> i tried to submit a form it saves all data nad when it is asked
> to redirect after saving it..it doesn't w
What you have there looks like it should work okay. Check that your debug
is not set at zero and try it again, it's probably throwing an error you're
not seeing.
Also, you can use Configure::write('debug', 2); directly in the controller
method for your view.
HTH,
ED
On Thursday, March 22,
Correction :: You can combine options of FormHelper::submit(),
JsBaseEngine::request(), and *JsBaseEngine::event()* my bad ;)
On Wednesday, March 21, 2012 3:14:17 AM UTC-4, CrotchFrog wrote:
>
> @aSh!Q's :: You can combine options of both FormHelper::submit(),
> JsBaseE
uccess:function (data, textStatus)
{$("#weekList").html(data);}, type:"post",
url:"\/acclaim\/admin\/shopHours\/getWeeks"});return false;});
Just sayin' ;)
Anyhow, adding 'buffer' => false to the options array took care of the
problem.
Thank
atement appear when doing a model delete?
>
> On Friday, March 9, 2012 9:25:09 PM UTC-8, CrotchFrog wrote:
>>
>> It's correctly generating the path and works fine when manually deleting
>> with Uploader.
>>
>> On Friday, March 9, 2012 1:30:31 P
rsday, March 8, 2012 9:38:05 PM UTC-8, CrotchFrog wrote:
>>
>> Using Cake 2.1 & Uploader 3.3
>>
>> 'Uploader.Attachment' => array(
>> 'fileName' => array(
>> 'name' => 'generateFilename',
>>
gt; array(),
's3' => array(),
'metaColumns' => array(
'ext' => 'ext',
'type' => 'type',
'size' => 'size',
'group' => 'group',
'width' => '',
'height' =
I've been using $this->referer() in 2.1 with no issues.
ie. $this->redirect($this->referer());
On Thursday, March 8, 2012 5:10:28 AM UTC-5, heohni wrote:
>
> How can I get now the referer?
> In $this->request->params nothing?
>
--
Our newest site for the community: CakePHP Video Tutorials
htt
Just to eliminate the obvious ... have you included the .js
using $this->Html->script() or some other method?
Have you checked the script for errors using Firebug or something similar?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new Cake
I could use a bit of help straightening out my Auth, Autth->login. In the
process of trying to get it to work I made a nice enough mess that I just
need to start over.
I'm not using Form based Authentication (first time I've attempted this)
and I'm also using a Model other than User (first tim
Quick update.
The issue is resolved. I restructured the method in the controller and
walked through it again.
Again, it executes to completion.
The elseif() in the method is keeping the view from rendering even though
the statement itself is not failing.
Perhaps a coding issue I'm just not
Just a little bit ago I ran into a situation where my View is displaying
nothing, as in a blank page.
The result is the same with 2.0 RC3 & 2.1 which would lead me to believe
it's a coding issue, but there are no errors to be found as far as I can
see.
I tested the method in the controller a
#x27;m a little fuzzy in this area.
Thanks,
- Ed
On Oct 9, 6:09 am, CrotchFrog wrote:
> I'm a bit confused in the proper use of App::import() vs. App::uses()
> in migrating to 2.0.
>
> I'm try to load the Facebook php sdk from the Vendor folder as I used
> to in 1.3.
>
I'm a bit confused in the proper use of App::import() vs. App::uses()
in migrating to 2.0.
I'm try to load the Facebook php sdk from the Vendor folder as I used
to in 1.3.
In 1.3 what worked for me was :
App::import('Vendor', 'facebook)
function __construct(){
parent::__construct();
ou do remove them and try to
> > save.
>
> > On Sun, Oct 2, 2011 at 6:14 PM, CrotchFrog wrote:
>
> >> Just wondering if this issue has been resolved? I'm having the same
> >> problem with 2.0 RC2.
>
> >> On Sep 30, 4:46 am, "reynie...@gmail.com&quo
Just wondering if this issue has been resolved? I'm having the same
problem with 2.0 RC2.
On Sep 30, 4:46 am, "reynie...@gmail.com" wrote:
> Return "Entro" so it goes trough (!empty($this->data)) :-(
>
> Ing. Reynier Pérez Mira
> Cel: +58 416.921.7406
> Correo: reynie...@gmail.com / reynie...@hot
Thanks for answering Johan :)
I tracked the problem down to passing form data via "GET" through an
iframe. I located where the problem was occurring, but I couldn't
figure out why. I tried a few different approaches to no avail. In any
case I resorted to using "POST" and Cache and the app once aga
@ShadowCross:
I originally tried your example of:
[code]
$this->paginate('Like', array(
'contain' => array('User'),
'conditions' => array(
'Like.count >' => 0
),
'order' => array(
'Like.count' => 'desc',
'Like.modified' => 'asc'
)
);
[/code]
The probl
There is not much going on at all with the Like::getMostLiked()
function. The Like Model works in conjunction with Facebook. FB's Like
button doesn't work so well with password protected pages so I
basically re-wrote their script for the "Like" button and now it does
what I want and then some. The
@ShadowCross:
Thank you for the help, I appreciate it.
The combination of
> class LikesController extends AppController {
>...
>var $paginate = array(
>'limit' => 20,
>...
>);
AND
> $this->helpers[] = 'Paginator';
while it does in fact load the
_id
>
> do we have to send the value if ID from the database to VIEW ?
>
> On Wed, Jan 19, 2011 at 11:37 PM, Karthikeyan P
> wrote:
>
>
>
>
>
>
>
> > thanks all...seems like almost there ...
> > but what is *$photo_id* in the VIEW
>
> > Thanks
&g
I'm not sure if this will help you but it's how I display BLOB type
images.
Like Ryan said, you'll have a separate action in your controller
specifically for displaying your photo.
// PHOTOS CONTROLLER
function displayPhoto()
{
$this->set('photo', $this->Photo->find('first',
array('conditio
Have you considered writing your data to the session or passing it
through a redirect()?
$this->redirect(array('controller' => 'someController', 'action' =>
'edit', $data));
or
$this->Session->write('Some.data', $data);
On Jan 17, 10:27 pm, zer0_gravity wrote:
> How Do I share a variable or data
Hi John,
I do use a plugin to manage permissions and it seems to work quite
well
although I still prefer the shell interface for adding/removing aro/
aco
and creating permissions on the fly.
The grey area for me right now is authorizing CRUD vs. otherActions.
I know that I can use Auth->mapAction
@invisibleman:
Did you ever resolve this problem? I'm having the same issue.
On Apr 27, 6:18 am, invisibleman wrote:
> i can't seem to bake my models, views or controllers in the stable of
> cakephp 1.3.0 is anyone else having this problem?
>
> It just seems to create empty files for me. For exa
I finally gave in and decided to give Cake a shot so please pardon my
ignorance to what may seem obvious to you. The majority of my sites
are Ajax heavy so I decided this would be as good a place as any to
start so I set to work on a (what should be simple) form that creates
itself dynamically acco
63 matches
Mail list logo