This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%if 0%{?rhel} || 0%{?centos_version} | |
# RedHat | CentOS | |
BuildRequires: php-devel >= 5.2 | |
Requires: php5 >= 5.2 | |
%else | |
%if 0%{?fedora} | |
# Fedora | |
BuildRequires: php5-dev >= 5.2 | |
Requires: php5 >= 5.2 | |
%endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->_em->setTable('user'); // Sets DbTable-class to use. | |
$users = $this->_em->findById(1); // Returns a collection of users found. | |
$user = $users->first(); // Get only the first user. | |
$user->setFirstname('Max'); | |
$user->setLastname('Mustermann'); | |
$this->_em->save($user); // Update user information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Yela; | |
class PageNotFoundException | |
extends Exception | |
{ | |
public function __construct( | |
$message = 'The requested site was not found on this server', | |
$code = 404, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create new module navigation page(s). | |
$moduleConfig = new \Zend_Config_Xml($configPath . $iterator->getFilename(), 'navigation', true); | |
// Add modules as pages to base navigation. | |
$navigation->addPage($moduleConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<config xmlns:zf="http://framework.zend.com/xml/zend-config-xml/1.0/"> | |
<navigation> | |
<dashboard> | |
<label>Dashboard</label> | |
<module>base</module> | |
<controller>admin-index</controller> | |
<action>index</action> | |
<route>admin</route> | |
<type>mvc</type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<config xmlns:zf="http://framework.zend.com/xml/zend-config-xml/1.0/"> | |
<navigation> | |
<user> | |
<label>Users</label> | |
<module>user</module> | |
<controller>admin-index</controller> | |
<action>index</action> | |
<route>admin</route> | |
<type>mvc</type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<config xmlns:zf="http://framework.zend.com/xml/zend-config-xml/1.0/"> | |
<navigation> | |
<contact> | |
<label>Contact</label> | |
<module>contact</module> | |
<controller>admin-index</controller> | |
<action>index</action> | |
<route>admin</route> | |
<type>mvc</type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Base navigation. | |
$configPath = APPLICATION_PATH . '/configs/navigation/admin/'; | |
$config = new \Zend_Config_Xml($configPath . 'base.xml', 'navigation', true); | |
// Create base navigation. | |
$navigation = new \Zend_Navigation($config); | |
// Module navigations. | |
$iterator = new \DirectoryIterator($configPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object(Zend_Config_Xml)#421 (9) { | |
["_skipExtends":protected] => bool(false) | |
["_allowModifications":protected] => bool(true) | |
["_index":protected] => int(0) | |
["_count":protected] => int(1) | |
["_data":protected] => array(1) { | |
["contact"] => object(Zend_Config)#425 (8) { | |
["_allowModifications":protected] => bool(true) | |
["_index":protected] => int(0) | |
["_count":protected] => int(7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (_data.dialog.uri) { | |
// Open dialog with and load content stored at uri. | |
$('<div>').dialog($.extend(params, { | |
open: function () | |
{ | |
$(this).load(_data.dialog.uri); | |
} | |
})); | |
} |
OlderNewer