Hi there
I've put some of my free time on reading/learning about cakephp but now I'm wondering if will not be better to switch completely to ruby on rails.
Can you give me the good and the bad of those tools, when is about web-development?
many thx
...
i can't figure out how i should access the repository from a CakePHP project called fredistrano (you can do CakePHP deploys with a web 2.0 interface). i have fredistrano in my web broadcasting directory on a shared unix web server. when i use tortoisesvn from my laptop, i have to use svn+ssh://[email protected]/svnpath/trunk/. i tri...
Hi,
I am having a action in COntroller as
function view($formid = null)//viewPage
{
$this->set('formid',$formid);
$viewfields=$this->Form->viewForms($this->data);
$this->set('viewfields',$viewfields);
}
Model->viewforms
function viewForms($data)//ViewPage
{
$this->data['Attribute']['form_id...
Hi. I am using the registration form for different users? After a new user logs in, the registered users should redirect to an after-login page. We are using Auth component for the authentication.
How do I do this?
...
Hi,
i am having a Div like
<div class="float_left" id="fb_contentarea_col2_dropingarea">
<div data-attr="text" id="div1" class="field_div_style1 rounded_edges1"> </div>
<div data-attr="text" id="div2" class="field_div_style1 rounded_edges1"> </div>
<div data-attr="text" id="div3" class="field_div_style1 rounded_edges1 f...
I'm writing a small CakePHP application for an organization and have included a simple contact form that accepts an email address, subject, and message, and emails the message to the address.
Everything seems to work fine, and any email sent to myself or anyone at the organization arrives just fine, except if they access the message via...
I am trying to get nusoap server working with cakephp, the problem I am assuming is that the code is within a class (controller) and nusoap is trying to execute 'function()' instead of '$this->function()'. Does anybody know of a simple workaround for this, i don't like modifying 3rd party classes...
...
Hi, I'm using the Acl and Auth components in CakePHP, actually the application are validating the Username and Password of the user, but now I need to validate if the user is active. Actually I use the
$this->Auth->autoRedirect = false;
to do some stuff after the authentication. There's a way to do this without making another query t...
Since there doesn't seem to be any support for optimistic locking in CakePHP, I'm taking a stab at building a behaviour that implements it. After a little research into behaviours, I think I could run a query in the beforeSave event to check that the version field hasn't changed.
However, I'd rather implement the check by changing the ...
I am having a really frustrating problem in CakePHP where a space keeps coming up at the beginning of my KML file layout which causes Google Earth to reject the KML file!
<?php header("Content-disposition: attachment; filename=area.kml");
header("Content-Type: application/vnd.google-earth.kml+xml kml; charset=utf8");
header("Content-Tra...
I'm creating a contact form to send an email to a specified address. I'm trying to utilize CakePHP model validations and since I don't need a table for the contact model, I've set useTable to false in the contact model.
Yet I'm getting an error in the controller function that does the sending. The error is
Missing Database Table
E...
OK, I have a set of tables that I want to use for my user logins. I am guessing that I need a separate model for each table in the database. My tables are as follows:
Users - user information such as first and last name, groups_id, status, etc...
groups - defines the user groups with id, name, description
permissions - defines a lis...
im using jquery tools.
im trying to put tooltips on the inputs of the form which is in the a tab.
this is my script:
<script>
// perform JavaScript after the document is scriptable.
$(function() {
// initialize tooltips
$("#UserContactPerson").tooltip({
// place tooltip on the right edge
position: "center right",
// ...
What is the largest website out there using the CakePHP framework?
I'm interested in pageview volume mostly, so I will use Alexa Traffic Rank and Reach metrics to evaluate the answers.
...
I have a simple login form, username and password. Basically, When a user is anywhere on the website, he can click a link that will take him to the login page. After login, he is redirected to the page he came from initially.
The problem:
let's say I was in the "/posts" page, and I clicked to login, so now I am on "/users/login".
- if...
Greetings!
I'm trying to add simple mail functionality to a little web app and I'm stuck. I'm able to send email from the terminal to myself on local machine just fine, but when I try to run the app I get "Connection refused: 61"
At first I thought my setting are messed up, I kept playing with them for a while and for now decided to giv...
Let's say I've got two tables: cities and countries. The City model belongsTo a Country. Now, when I display lists of cities, I want them to be ordered by country name and then city name.
I tried this in my City model class:
var $order = array('Country.name' => 'asc', 'City.name' => 'asc');
The sort order works correctly for my index...
I am contemplating between three frameworks: Django, CakePHP and Zend. The project will include social aspect (members), will have a cart/checkout, lots of different forms and very heavy database usage. I would like to write most of my sql by myself but have only basic knowledge of web development. Both PHP and Python will be new languag...
array(
'Inmsg.user_id' => $this->Session->read('Auth.User.id'),
"or" => array (
"Inmsg.text LIKE" => "%".$search_term."%",
"Contact.number LIKE" => "%".$search_term."%"
)
)
...
So it seems that cakePHP tables need a field called "name" or else the id number is displayed while testing out table relationships in the scaffold. Is there a way around this? instead of 'id' 'name' 'last_name' in my table, I want 'id' 'first_name' 'last_name'. I have to have a "name" field for every table in order to display the pr...