src/classes/CCController.php
public static function has_action( $path, $action = null ) 
	{
		$path = CCStr::cut( $path, '@' );
		$path = CCStr::cut( $path, '?' );
		
		// fix closure given
		if ( !is_string( $path ) )
		{
			return false;	
		}
		
		// get controllers default action
		if ( is_null( $action ) ) 
		{
			$action = static::$_default_action;
		}
		
		// try to load the controller
		if ( !$controller = static::create( $path ) ) 
		{
			return false;
		}
		
		return method_exists( $controller, static::$_action_prefix.$action );
	}
public static function has_action( $path, $action = null ) 
	{
		$path = CCStr::cut( $path, '@' );
		$path = CCStr::cut( $path, '?' );
		
		// fix closure given
		if ( !is_string( $path ) )
		{
			return false;	
		}
		
		// get controllers default action
		if ( is_null( $action ) ) 
		{
			$action = static::$_default_action;
		}
		
		// try to load the controller
		if ( !$controller = static::create( $path ) ) 
		{
			return false;
		}
		
		return method_exists( $controller, static::$_action_prefix.$action );
	}
public static function has_action ( $ path , $ action = null ) { $ path = CCStr :: cut ( $ path , '@' ) ; $ path = CCStr :: cut ( $ path , '?' ) ; // fix closure given if ( ! is_string ( $ path ) ) { return false ; } // get controllers default action if ( is_null ( $ action ) ) { $ action = static :: $ _default_action ; } // try to load the controller if ( ! $ controller = static :: create ( $ path ) ) { return false ; } return method_exists ( $ controller , static :: $ _action_prefix . $ action ) ; }
check if a controller implements an action

@param string		$path
@param string		$action
@return bool
check if a controller implements an action