1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-07-02 22:55:04 +03:00
kangana/application/classes/Controller/Client.php

42 lines
796 B
PHP
Raw Normal View History

<?php defined('SYSPATH') or die('No direct script access.');
/**
* Client controller.
**/
class Controller_Client extends Controller_Layout {
2014-02-02 05:25:58 +02:00
protected $secure_actions = array(
'index','create', 'edit', 'delete', 'view'
);
public function action_index()
{
$this->template = new View_Client_Index;
$this->template->title = __('Clients');
$this->template->items = ORM::factory('Client')
->filter_by_page($this->request->param('page'))
->find_all();
}
2014-01-16 14:01:14 +02:00
/**
* Manually add a client.
**/
2014-02-02 05:25:58 +02:00
public function action_create()
2014-01-16 14:01:14 +02:00
{
}
/**
* Search a client.
**/
public function action_search()
{
$this->template = new View_Client_Search;
}
2014-01-17 09:37:23 +02:00
public function action_subscribe()
{
}
public function action_unsubscribe()
{
}
}